htaccess permanent re-direct from former static pages giving problem !
-
Hi,
I’ve redesigned a (formerly static) website and put WordPress behind it. Now I want to redirect the former static category pages to the new wordpress categories but it’s not exactly doing what I want and I can’t seem to fix it myself:
here’s an example:
the old url was:
https://www.domain.com/mag/category.phpthe new url is:
https://www.domain.com/news/category/my htaccess redirect rule is:
Redirect permanent /mag/category.php https://www.domain.com/news/category/and this is where it redirects to:
https://www.domain.com/news/category/?category_name=mag&name=category.php&page=So the redirection url is fine EXCEPT that it’s still adding variables at the end.
Can anyone tell me how I can fix this redirect so t redirects to https://www.domain.com/news/category/ without the variables.
Thanks in advance !
- The topic ‘htaccess permanent re-direct from former static pages giving problem !’ is closed to new replies.