I’ve been attempting to write query redirects from an old version of a website using asp to new pages on a WordPress site. Here is an example what of what I need to have redirected:
http://www.example.com/pc/viewCategories.asp?idCategory=12
to
http://www.example.com/products/new-product/
Here is what I’ve tried without success:
RewriteEngine On
RewriteCond %{QUERY_STRING} idCategory=12
RewriteRule ^$ /products/new-product/ [R=301,L]
I’m new to htaccess. Thank you for any direction on this.
I think you’re searching for IIS Redirect Module:
http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module