1,105,310 Community Members

mod_rewrite question

Member Avatar
darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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?

Member Avatar
smantscheff
Nearly a Posting Virtuoso
1,289 posts since Oct 2010
Reputation Points: 265 [?]
Q&As Helped to Solve: 271 [?]
Skill Endorsements: 8 [?]
 
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.

Member Avatar
darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I see.
Do you have in mind something else?

Member Avatar
darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 
Member Avatar
EvolutionFallen
Posting Pro
504 posts since Aug 2009
Reputation Points: 107 [?]
Q&As Helped to Solve: 108 [?]
Skill Endorsements: 8 [?]
 
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.

Member Avatar
darkslide
Newbie Poster
5 posts since Feb 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

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...

Member Avatar
EvolutionFallen
Posting Pro
504 posts since Aug 2009
Reputation Points: 107 [?]
Q&As Helped to Solve: 108 [?]
Skill Endorsements: 8 [?]
 
0
 
You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: