We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,628 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

mod_rewrite question

Hello, i have a question about mod_rewrite.
I have the following url: www.example.com/listen.php?title=U2_with_or_without_you&youtube_video_id=hTgnDLWeeaM

Now, i want to rewrite it like this:

www.example.com/U2_with_or_without_you->hTgnDLWeeaM

Now, my question is, since i can't use the caracters - or _ as separators between the get parameters, it is "safe" to use -> ? Is it standard? I don't want to interfere with other websites, if the link will be bookmarked on facebook, or added as link in a youtube description, or anything else...

What do you say?

3
Contributors
6
Replies
5 Hours
Discussion Span
2 Years Ago
Last Updated
7
Views
darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

No, it's not safe to use angle brackets in links because they might interfere with HTML coding and they definitely will in a lot of websites programmed by lesser geniuses.

smantscheff
Nearly a Posting Virtuoso
1,297 posts since Oct 2010
Reputation Points: 321
Solved Threads: 270
Skill Endorsements: 8

I see.
Do you have in mind something else?

darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Just out of curiosity, why do you need the id in the URL still?
I'm not sure about the tilde. Apache seems to use it to indicate user directories.

EvolutionFallen
Posting Pro in Training
404 posts since Aug 2009
Reputation Points: 95
Solved Threads: 84
Skill Endorsements: 7

is use the id in order to embed a specific youtube video via jw player
so if i have the following id in the url: hTgnDLWeeaM
the player will embed this video: http://youtube.com/watch?v=hTgnDLWeeaM
i need it in the Url...

darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
EvolutionFallen
Posting Pro in Training
404 posts since Aug 2009
Reputation Points: 95
Solved Threads: 84
Skill Endorsements: 7

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0840 seconds using 2.85MB