Forum Moderators: phranque
i'm trying to do the following:
[blah.net...] rewrites to...
[blah.net...]
my rewrite rule almost works but it adds a '/' instead of a '&' for $1... so the above URL reads...
[blah.net...] ...which breaks the URL.
my mod_rewtrite code is the following...
RewriteCond %{QUERY_STRING} voucher=([^&]+)
RewriteRule ^/retail/([^/]+)/([^/]+)/voucher.exe$ [blah.net...] [R,L]
i'm desperate to sort this issue out!
I don't see anything wrong with your code, except that you should escape the period in "voucher\.exe". But that should not cause this problem.
Do you have any other rewrites in httpd.conf or in .htaccess files that might modify this URL?
If not, the only thing I can think of would be to manually re-type the rule, in case some of the characters have somehow been corrupted.
Jim
anyhow, the rule works, along with the other.
kind thanks for your previous comment!