Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

/robots.txt <--- what should be there?


agiftcodotcom

Recommended Posts

You don't need one. But if you don't want the 404s, create one such as this one line:

 

User-agent: *

 

On the other hand, it's a good idea to keep robots out of pages such as the shopping cart, etc. Here's what I have:

User-agent: *
Disallow: /shopping_cart.php
Disallow: /advanced_search.php
Disallow: /login.php
Disallow: /checkout_shipping.php
Disallow: /account.php
Disallow: /login.php
Disallow: /create_account.php
Disallow: /password_forgotten.php

Link to comment
Share on other sites

Hi,

 

I've read on many search engine optimisation forums that even though you can specify what files/paths are 'allowed', most bots/spiders don't follow the 'rules' anyway, it won't stop them spidering a path/file after all. :D

 

Peter

Link to comment
Share on other sites

Eric,

 

As Steve said, just create a file called robots.txt with this line in it

 

User-agent: *

 

Place it in your web root path (ususally called public_html).

 

Then that gets rid of the 404 messages.

 

Peter

Link to comment
Share on other sites

I've read on many search engine optimisation forums that even though you can specify what files/paths are 'allowed', most bots/spiders don't follow the 'rules' anyway, it won't stop them spidering a path/file after all.

That doesn't seem to be the case from what I can tell. Since I added the robots.txt file as above, none of the search engines have gone down the disallowed paths. It certainly doesn't hurt in any case.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...