Mornin',
I've been looking for an answer to my htaccess problem but I'm not particulary bright with htaccess so I'm hoping one of you out there can help. Basically I have an url:
http://www.domain.com?var=this and I need it to go to:
http://www.domain.com?newvar=thisThe problem I'm experiencing is the url i get is:
http://www.domain.com?var=this&newvar=thisFrom what I could gather the code is supposed to resemble:
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^var=(.+)$ [NC]
RewriteRule ^.*$ ?newvar=%1 [QSA,L,R=301]
Any help would be appreciated.