htaccess rewriteRule with ? symbol
Posted: Mon Nov 13, 2006 7:27 am
Hello, I have urls like this:
But with non cookie sessions they become:
The second '?' should be an '&' not a '?'
So i tried:
But it didn't work!!! Does anyone know what's going wrong!?
Thanks for any help you can give me,
James
Code: Select all
http://www.mydomain.com/products/ => http://www.mydomain.com/index.php?page1=productsCode: Select all
http://www.mydomain.com/products/?PHPSESSID=sjdhf89sfd8 => http://www.mydomain.com/?page1=products?PHPSESSID=sjdhf89sfd8So i tried:
Code: Select all
RewriteRule ^(.*)\?PHPSESSID(.*)$ /$1&PHPSESSID$2 [L]Thanks for any help you can give me,
James