Results 1 to 15 of 15
Thread: Rewrite encoded URL
May 22, 2012, 16:49 #1
- Join Date
- May 2006
- 0 Post(s)
- 0 Thread(s)
Rewrite encoded URL
For an unknown reason some sites link to mine with encoded url (info got from google webmaster tools).
Something like http://domain.tld/file.php%3Fid%3DUSERid%26cat%3Dsmth instead of http://domain.tld/file.php?id=USERid&cat=smth
I've tried several things (conditions, rules) from htaccess (httpd.conf) to rewrite encoded urls.
An approach is to RewriteRule ^file.php(.*)$ index.php?qs=$1 and handle $_GET['qs'] from index.php
Is it possible to Rewrite the encoded url? Or at least to match %3F and the others.