htaccess 301 redirects with site transfer
-
i recently changed my shopping cart and moved from a non wordpress shopping cart software to wordpress + shopp plugin.
originally, links to different categories of my site looked like this:
https://www.pooltees.com/products.php?cat=27 or
https://www.pooltees.com/products.php?cat=28not they look like this:
https://www.pooltees.com/shop/category/mens/ or
https://www.pooltees.com/shop/category/womens/I’m trying to get my htaccess file to correctly redirect visitors to the new page when they find the old link in a google search. Installed these two lines of code:
RewriteCond %{QUERY_STRING} ^products.php?cat=27$ [NC] RewriteRule ^/products.php$ https://pooltees.com/shop/category/chicks/ [R=301,L]
into the htaccess file, but that doesnt seem to have worked. here’s a look at the entirety of the htaccess file:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^.*shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/core/image.php?siid=$1&$2 [QSA,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{QUERY_STRING} ^products.php?cat=27$ [NC] RewriteRule ^/products.php$ https://pooltees.com/shop/category/chicks/ [R=301,L] </IfModule> # END WordPress
what am i doing wrong? please advise. thanks in advance.
- The topic ‘htaccess 301 redirects with site transfer’ is closed to new replies.