|
Search Engine Friendly URLs - The text of the URL or web address is an extra source of important information for the search engine spider. Having your main keywords in the URL for each product and category page can significantly help your search engine rankings. Search Engine Friendly URLs use a server feature called mod_rewrite to rewrite the URL so that the outside world sees only the URL generated by the database from the product name and category name information.
From this: http://www.babyben.co.uk/product_info.php?products_id=1026
To this: http://www.babyben.co.uk/bushaby-waterproof-baby-suit-p-1026.html
In more detail:
osCommerce is a database driven website. This allows fantastic flexibility and means that you can display an unlimited number of products and categories in your osCommerce shop. In common with all database driven sites, osCommerce uses a query string to allow individual php pages to display the information from the database. For example the single product_info.php page (or product page) is used to display every product.
For product 1 the query string will be: http://www.babyben.co.uk/product_info.php?products_id=1 For product 1026 the query string will be: http://www.babyben.co.uk/product_info.php?products_id=1026
Traditionally, search engines have not liked query strings, although most do now interpret them successfully. However, the main drawback is that products_id=1026 contains no product information for the outside world which means this is an extra source of information for a search engine that is not currently being using. The answer is to allow the server to dynamically rewrite the URL via a server function called mod_rewrite. As a result, the http://www.babyben.co.uk/product_info.php?products_id=1026 URL can be shown to the outside world as http://www.babyben.co.uk/bushaby-waterproof-baby-suit-p-1026.html by creating a virtual URL from the product name and category information stored for each product and category. As a result this form of optimisation requires no effort from the store owner. You simply let the server do the work from the product information that you provide.
|