July 20, 2004

Get rid of that WWW.

Today's tip comes from the always knowledgable Anne van Kestern, and it's about getting rid of the WWW in your URL.

In case you haven't heard, WWW is deprecated, and here is an easy way via .htaccess to correct the URL.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
Post Info

Tagged As Tip

Comments are Open (0)

Posted at 11:10 AM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu