Forum Moderators: coopster & phranque

Message Too Old, No Replies

cgi wrapper issues

problems with default cgi wrapper error page

         

phish

7:08 am on Dec 29, 2006 (gmt 0)

10+ Year Member



I have a script I needed to remove from my site because it was causing huge dup content issues with google. So, i deleted it from cgi-bin, now I have a bigger problem. When you try to go to the script that used to reside there, I get the cgi-wrapper error script not found, so im like ok this isnt so bad. Then i run a header check, and low and behold, that cgi error page is returning a 200 ok. what can i do so that if a search engine finds an old link or something to that script, it returns a 404. I have a robots.txt file setup temporarily to block them. Any ideas?

theBear

4:24 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you running a custom error page?

If so you likely have more than just not found cgi-wrapper pages causing you trouble.

Make certain that you don't have the http://www.example.com in ANY Errordocument lines in your .htaccess file or httpd.conf file.

If you are not running Apache as a server you need to follow that servers documentation on properly seting up custom error handling.

This is an Apache example:

ErrorDocument 404 /include/404error.shtml