Using rewrite in .htaccess on static websites
For those familiar with the need to create search engine friendly pages on dynamic urls, you may or may not know about why you need to use rewrite on static html websites as well.
On dyamic pages you would use the mod_rewrite feature that appache has. It is a wonderful thing. In static page websites you would need to setup a rewrite in the .htaccess file so that when visitors and spiders go to http://yoursite.com they will automatically see http://www.yoursite.comĀ instead. The two urls may look the same, but they are not. The difference is pretty big because you can accidentally lose PageRank. Spiders see two separate urls even though the content is the same and the same page is loading.
The .htaccess rewrite for static pages is a common item that is overlooked by designers. A designer that is also an seo expert can spot these things instantly and save you from trouble in the future.
Tags: apache, dynamic pages, htaccess, mod_rewrite, rewrite, static html
Posted in Search Engine Optimization |









