RickG
10-31-2002, 02:16 PM
I'm trying to create a rewrite rule which accomplishes the following:
- If the page request is /siteindex.html
- And the User Agent IS NOT Googlebot
- redirect the request to the home page (i.e. /)
Here's the logic behind the request:
I created a site index file which is linked from the home page in order to "help" Google index a site. The good news is this has been effective.
However, despite using meta robots commands, Google has included the site index page in their search results. The visitor behavior I'm seeing in our apache log files suggests folks arriving at this page from search results are not traversing the site as I'd expect (the page is really designed for robots and not very interesting).
I've read through mod_rewrite at apache.org and engelschall's tutorial, but just can't get this right. Any suggestions would be appreciated. Thx !
- If the page request is /siteindex.html
- And the User Agent IS NOT Googlebot
- redirect the request to the home page (i.e. /)
Here's the logic behind the request:
I created a site index file which is linked from the home page in order to "help" Google index a site. The good news is this has been effective.
However, despite using meta robots commands, Google has included the site index page in their search results. The visitor behavior I'm seeing in our apache log files suggests folks arriving at this page from search results are not traversing the site as I'd expect (the page is really designed for robots and not very interesting).
I've read through mod_rewrite at apache.org and engelschall's tutorial, but just can't get this right. Any suggestions would be appreciated. Thx !