homepage Welcome to WebmasterWorld Guest from 54.226.136.179
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

    
redirection with Hex in the URL?
Got these pages that indexed with hex vars in the URL.
acimag

5+ Year Member



 
Msg#: 4228182 posted 8:49 pm on Nov 8, 2010 (gmt 0)

Looking into an issue that was brought to my attention.

Seems that a simple redirect wont work.

I tried both:

#RewriteRule ^California-card_%E2%80%8Bstores.html [domain.org...] [R=301]
redirect 301 /California-car_%E2%80%8Bstores.html [domain.org...]

They both ignore my command but i dont want a duplicate content problem? you guys have nay idea?

-Anthony

 

acimag

5+ Year Member



 
Msg#: 4228182 posted 2:32 pm on Nov 9, 2010 (gmt 0)

bump?

Basically I dont know how these urls get indexed and i just want to redirect them. any ideas?

I also tried:

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /California-card_%E2%80%8Bstores\.html\ HTTP/

RewriteRule ^California-card_%E2%80%8Bstores.html [do...] main.org/California-card_stores.html? [R=301,L]

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4228182 posted 1:08 am on Nov 30, 2010 (gmt 0)

The percent signs need to be escaped, and a few more tweaks might help:

RewriteCond %{THE_REQUEST} ^[A-Z]+\ /California-card_\%[Ee]2\%80\%8[Bb]stores\.html
RewriteRule ^California-card_.+stores\.html$ http://www.example.org/California-card_stores.html? [R=301,L]

Jim

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