Simplified my URLs (20th June 2006)
By adding a little rewrite rule to my .htaccess
files, the www.
part of the URLs on my websites are now removed. The method I’m using is this:
# Turn on URL Rewriting:
RewriteEngine On
# Remove "www" from requests:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^www.projectcerbera.com$ [NC]
RewriteRule ^(.*)$ http://projectcerbera.com/$1 [R=301,L]
This has now been applied to all my websites (obviously using the correct domain name for each one):
There is even a website for other websites doing this. It only takes a few minutes, so maybe you’d like to join the party and simplify your own URLs?