homepage Welcome to WebmasterWorld Guest from 54.167.10.244
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Redirect to a URL with a & in it.
Jesse_Smith




msg:4239552
 2:05 am on Dec 7, 2010 (gmt 0)

RewriteRule ^Anything$ http-//www.youtube.com/user/ChannelName&p/u [L,R=301]

redirects to

http-//www.youtube.com/user/ChannelName%23p/u

instead of

http-//www.youtube.com/user/ChannelName&p/u

How do you redirect to a URL with an & in it?

 

g1smd




msg:4239621
 8:31 am on Dec 7, 2010 (gmt 0)

As far as I know, the & is only valid as a query string delimiter and must be encoded if it appears anywhere else within a URL. That's in the HTTP specifications.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved