Apache Mod_rewrite
Note: This feature is not available on all servers
What is Mod_rewrite.
This web server module provides a rule-based rewriting engine to rewrite requested
URLs on the fly
What does it do for my site?
This provides for a way to show the search engines a html website but have dynamic
content.
Example
http://www.example.com/listings/toronto_on_ca.html
in html is the same as
http://www.example.com/listings.php?city=Toronto,on,canada
The top link does not exist on your server. The server uses mod_rewrite to show the page as if you used the bottom link. This allows you to have html looking pages with the hours to create hundreds of them by hand.
How do I use it?
First your sever must have mod_rewrite.
You then need to rename the provided htaccess_sample to .htaccess
Hotel overviews
http://www.example.com/hotel/{hotelid}.html
Hotel Brochures
http://www.example.com/brochure/{hotelid}.html
City Listings
This has more then one method.
http://www.example.com/listings/canada/toronto.html
http://www.example.com/listings/{countrycode or country name}/{cityname}.html
http://www.example.com/listings/Las+Vegas_nv_us.html
http://www.example.com/listings/{cityname}_{statecode or name}_{countrycode
or name}.html