To understand why the “WWW” prefix or subdomain is outdated, we should first look at the original definition of WWW.
World Wide Web:
n. Abbr. WWW
- The complete set of documents residing on all Internet servers that use the HTTP protocol, accessible to users via a simple point-and-click system.
- n : a collection of internet sites that offer text and graphics and sound and animation resources through the hypertext transfer protocol.
The important part here is the HTTP Protocol. Whenever a link is made, such as http://
The definition above implies that the “World Wide Web” uses the http protocol to send its data. Why then, do we still need to add the “WWW” subdomain? It’s a waste of time to type it. Wouldn’t it be easier to just type in the domain name, without the “WWW”?
While most webservers will accept traffic on the domain-name, without the WWW prefix, they usually redirect to the WWW-part of the website. Typing http://
Using the following .htaccess rule, you can safely redirect all traffic from http://www.
Options +FollowSymlinks
RewriteEngine on
# Remove the WWW subdomain, and redirect to the domain itself
RewriteCond %{http_host} ^www\.domain\.com [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,NC]
For more information on what Redirect-Code to use ([R=301]) I kindly refer you to the following page: Using Proper Header Redirects In PHP. There you’ll find a good explanation on the difference in 301 and 302 redirects, and their effect on search engines.