Forum Moderators: phranque

Message Too Old, No Replies

Using "%" in htaccess

         

madmatt69

5:50 pm on Nov 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi all,

Trying to do a redirect, and there are several % signs in the url. The problem is that when it redirects, the % signs are stripped out, and then the URL doesnt work.

How can I get apache to leave in the % signs? I tried the [NE] flag, [L], [R=301] and various combinations but can't get it going..

Any help would be appreciated!

jdMorgan

5:57 pm on Nov 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using the [NE] flag is the proper solution.

Completely flush your browser cache after any code change.

You may need to 'escape' the percent characters in the substitution URL, eg. /foo.php?arg1=abc\%arg2=xyz

Jim

madmatt69

6:00 pm on Nov 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The "\" did it. Thanks :)