Forum Moderators: open

Message Too Old, No Replies

can google crawl cgi file?

can google crawl cgi file

         

johnlim

2:06 am on Mar 20, 2004 (gmt 0)

10+ Year Member



Hi,

I have a file named index.cgi and use it as homepage then the real html contents is in homepage.html;

then index.cgi like the following,

print "Location: homepage.html\n\n";

Question: will google get the real contents of homepage.html after googlebot crawl index.cgi?

blaze

7:56 pm on Mar 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a redirect as well, and google doesn't seem to have a problem with it.

However, everyone advises against it.. I should really get off my butt and get rid of the redirect.

mcavic

9:54 pm on Mar 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should make it a 301 permanent redirect. In Perl:

print "Status: 301 Moved Permanently\n";
print "Location: [domain.com...]

Or in PHP:

header("HTTP/1.1 301 Moved Permanently");
header("Location: [domain.com...]

That way, Google will drop the old url and index the new one instead.

Bones

9:57 pm on Mar 21, 2004 (gmt 0)

10+ Year Member



I don't think GoogleBot knowingly crawls just an ordinary .cgi page, unless you tack parameters on the end of it.