Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-18-2011, 08:42 PM   PM User | #1
Nare
New to the CF scene

 
Join Date: Nov 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Nare is an unknown quantity at this point
Apache not redirecting encoded urls.

I have a problem with Apache doing a 301 redirect with encoded urls. The urls are encoded as they include Hebrew chars.

I've done some Googling and found out that there is a know bug with encoded urls and slashes and that I should encode the slash twice so that it becomes '%252f'.

Unfortunately none of what I tried worked.

The url that I would like to do the redirect for is the following (Just one Hebrew letter for the sake of simplicity):

www.domain.com/%D7

so I tried the following the lines in .htaccess:

redirect 301 /%D7 http://www.tagetdomain.com
redirect 301 %2f%D7 http://www.tagetdomain.com <-- Slash encoded
redirect 301 %252f%D7 http://www.tagetdomain.com <-- Slash double encoded

I also tried may other things that made less to little sense at all but I gave them a try anyhow.

Will appreciate any help with this.
Thanks!
Nare is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:52 PM.


Advertisement
Log in to turn off these ads.