Forum Moderators: phranque
I have this rule in the htaccess.
RewriteRule ^reg/complete/([a-zA-Z0-9%\.\-_]+)/([a-zA-Z0-9%\.\-_]+)/([a-zA-Z0-9%\.\-_]+)/?$ register-complete.php?username=$1&unique_code=$2&salt=$3 [QSA,L]
However, the URLs such as this
http://example.com/reg/complete/yahoo.com/02efba1ac126ef5d1bb8d0757ed291d3/ed1d3c2ecf1944ac05352cc0f14c4a85
become http://example.com/register-complete.php?username=yahoo.com&unique_code=02efba1ac126ef5d1bb8d0757ed291d3&salt=ed1d3c2ecf1944ac05352cc0f14c4a85&phpMyAdmin=16f69a99a2198b770f990220d7927552
Which means that that the rule is identifying the pattern but its redirecting to it real unwanted url.
Can you kindly help out.
Also, I am not sure about this part ([a-zA-Z0-9%\.\-_]+)
I want to be able to allow only dash, underscore and a dot in the URLs. Is it possible and is my rule right because I use this atom in many other places as well.
Kind Regards,
If i'm reading this correctly, the basic problem seems to be that 'something' --and not this rule itself-- is appending the "&phpMyAdmin=16f69a99a2198b770f990220d7927552" query parameter. So I'll ask, is this internal rewrite rule followed by any external redirect rules -- perhaps in a lower-level .htaccess file?
Jim