themistral Posted May 3, 2009 Share Posted May 3, 2009 Hi guys, Got a problem with my rewritten url. A folder name has been changed and I have set a RedirectMatch rule which works, but it appends the querystring to the end of the url. RedirectMatch 301 ^/folder-name/(.*)$ http://www.domain.com/new-folder-name/$1 returns http://www.domain.com/new-folder-name/page.html?cat1=folder-name&page=list Any ideas how to get rid of the querystring? Link to comment https://forums.phpfreaks.com/topic/156655-query-string-being-parsed-in-re-write/ Share on other sites More sharing options...
themistral Posted May 4, 2009 Author Share Posted May 4, 2009 The underlying rule is RewriteRule ^(.*)/(.*).html$ template.php?cat1=$1&page=$2 [L] Although the redirect works, the value that is showing up in the querystring for cat1 is the old value. Could this be the cause of the querystring showing up - the fact that the cat1 value is not being updated? If so, how can I fix this? Link to comment https://forums.phpfreaks.com/topic/156655-query-string-being-parsed-in-re-write/#findComment-825520 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.