While I've already removed them from Google and blocked them in robots.txt, I need to redirect them while they still show up in search results.
At the beginning of my file I have:
Code: Select all
RewriteEngine On
RewriteBase /StoreFront/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Code: Select all
RewriteCond %{QUERY_STRING} http://domain/StoreFront/Apple-MacBook-MC024LLA$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://domain/StoreFront/Buy-MacBook/Buy-MacBookPro-MC024LLA? [R=301,L]
Code: Select all
RewriteCond %{QUERY_STRING} ^Apple-MacBook-MC024LLA$
RewriteCond %{REQUEST_METHOD} !^POST$
RewriteRule ^index\.php$ http://domain/StoreFront/Buy-MacBook/Buy-MacBookPro-MC024LLA? [R=301,L]
Thank you,
Jared