Getting a lot of server errors in my webmaster tools logs for these:
http://www.vanilla.com/?orderby=prod...%2F2%2Fpage/2/
I just want all the ones that start with orderby=product to point Google to:
http://vanilla.com/shop
I tried:
RewriteRule ^\?orderby=product(.*)$ http://vanilla.com/shop [R=301,L]
(It breaks if I take out the \ before the ?) But that didn't work. It redirects me to the blog page.
Maybe part of the problem is this is a Wordpress site using permalinks and using this in the .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
So then I tried the following. I put my command ABOVE the Wordpress block. And RewriteEngine On is at the very top as well.:
RewriteRule ^index.php?orderby=product(.*)$ http://vanilla.com/shop [R=301,L]
I'm thinking Google is recording that long url after something stripped away index.php from the path.
And even if I do this:
redirect 301 /index.php?orderby=product_cdate&DescOrderBy=ASC&Itemid=159&option=com_virtuemart&page=shop.browse&category_id&manufacturer_id=0&keyword&keyword1&keyword2&limit=5&limitstart=0page%2F2%2Fpage%2F8%2Fpage%2F4%2Fpage%2F2%2Fpage%2F6%2Fpage%2F3%2Fpage/3/ http://vanilla.com/shop
It redirects to /?orderby=product_cdate&DescOrderBy=ASC&Itemid=159&option=com_virtuemart&page=shop.browse&category_id&manufacturer_id=0&keyword&keyword1&keyword2&limit=5&limitstart=0page%2F2%2Fpage%2F8%2Fpage%2F4%2Fpage%2F2%2Fpage%2F6%2Fpage%2F3%2Fpage/3/ http://vanilla.com/shop
IT JUST REMOVES THE INDEX.PHP and doesn't redirect me anywhere.
I guess the first order of business is to figure out why it's stripping out index.php from the string. Then try to get it to redirect, but I don't know. I'm stumped.


Reply With Quote



Bookmarks