Dick Raney
New Pleskian
I'm working on an eCommerce website that recently converted from a CGI script shopping cart to WordPress with WooCommerce. Google and other websites have links to the products with URLs that look similar to this:
http://www.jirehsupplies.com/cgi-bin/commerce.cgi?search=action&keywords=JSWS010008
which just gets a default Apache 404 error page. Plesk is not handling these links the same way it handles other 404 errors like this:
http://www.jirehsupplies.com/no-such-page.html
which get a custom 404 page.
I have tried to add 301 redirect rules to .htaccess file and nothing works. They have no effect on the cgi-bin URLs. I have also tried disabling CGI for the domain in Plesk, but that didn't help either.
How can I redirect ALL /cgi-bin/commerce.cgi URLs to the website home page?
http://www.jirehsupplies.com/cgi-bin/commerce.cgi?search=action&keywords=JSWS010008
which just gets a default Apache 404 error page. Plesk is not handling these links the same way it handles other 404 errors like this:
http://www.jirehsupplies.com/no-such-page.html
which get a custom 404 page.
I have tried to add 301 redirect rules to .htaccess file and nothing works. They have no effect on the cgi-bin URLs. I have also tried disabling CGI for the domain in Plesk, but that didn't help either.
How can I redirect ALL /cgi-bin/commerce.cgi URLs to the website home page?