Google Reported SOFT 404 Errors: Unable to 301 Redirect via .htaccess file
I'm working on a client's new redesigned website which runs on Magento. The old website's product pages used Query Strings. The complete site was design using PHP/MySQL.
I observed the following error in the Google Webmaster Tools
Google detected a significant increase in URLs we think should return a 404 (Page Not Found) error but do not.
One of the URL's that were detected was - URL: http://www.pudu.com.au/?pcode=GAUCHO under SOFT 404 Errors Section in Crawl Errors.
This is what Google Suggested.
The target URL does not exist and your server is not returning a 404 (file not found) error. More info.
Your server returns a code other than 404 or 410 for a non-existent page (or redirecting users to another page, such as the homepage, instead of returning a 404). This creates a poor experience for searchers and search engines.
I want to 301 redirect this page and other like pages to the Homepage now.
I am trying to do this in .htaccess
redirect 301 ?pcode=GAUCHO http://www.pudu.com.au/
It is not working...
If anyone can help me it would be greatly appreciated!