Copy link to clipboard
Copied
I recently coded an E-commerce site from scratch (no use of drupal or any other CM generator and no use of these shop fucntions that some ISPs provide)
The CM system which i gave the client allows him to add both brands and product types.
Obviously it also lets him add edit and delete individual products.
The "add product" system provides a drop down menu for both brand name and product type
the options for it are sourced from the brands a product types which he has added to the system.
The front end of the site which the visitors see has several menus such as the main HTML menu, various drop down menus ect, all of which source the options they display from the list of brands and product types which the client has made.
product types are always a sub menu which appear bellow each brand
One important aspect of the system is that for all the menus if a particular combination of brand and product type would return no products the site does not display that option to the user.
so in the main menu no brand has a sublisting for a product for which it currently has 0 list
ANYWAY MY PROBLEM IS THIS
the hyperlinks send variables to the product listing page using GET, which means the data is part of the URL
and since they are URLs google can index them.
and said indexed searches can remain out of date for several months
this means a google search could still result in the display of a page which show no prducts
how can i prevent this?
Copy link to clipboard
Copied
Use robots.txt and/or noindex tag to control how well behaved search engines index your pages.
Copy link to clipboard
Copied
that is a useless answer
the links which appear are automatically generated by the PHP code
but the PHP code does not generate a useless link
all of the links go to the same page but provide different GET stored as part of the URL
so a google bot coud index a page and all its hyperlinks
and then the client could remove a product type or a brand or all of the items with the same combination of product and brand but the google indexing would still exist for months.
a bot wont help with this problem because the indexing will have occured while the search still produced results
Copy link to clipboard
Copied
sounds like the only solution will be to have the PHP redirect to the home page if the page returns 0 results
will this work
remember that if this happens the link google gives the user will be a hyperlink with GET data added onto it.
Copy link to clipboard
Copied
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=164734
Find more inspiration, events, and resources on the new Adobe Community
Explore Now