How to remove the www and why you might want to

Many people assume that the www is needed at the beginning of all their Joomla website URL's. Read the fact and tips about this below.



How to remove "WWW" from your Domain Name and why it matters Why remove “WWW” from your Domain Name? Simply put, the “www” in front of a domain name is not necessary and it is much more convenient to type the URL without the “www” sub domain. Web servers display pages though the main domain name unless a particular subdomain is required; the use of the www subdomain is simply redundant. When you write an e­mail to someone you address it to This email address is being protected from spambots. You need JavaScript enabled to view it. instead of addressing it to This email address is being protected from spambots. You need JavaScript enabled to view it.. The mail client assumes the SMTP protocol; the www sub domain is just as redundant as the proposed mail sub domain. How do you remove "WWW" from your domain name? Add the following to your “.htaccess” file located in the root directory. If you do not have an .htaccess file, rename the htaccess.txt delivered with Joomla! to .htaccess. This method requires Apache Mod­ Rewrite module enabled. If you have access to the apache server configuration file (/etc/httpd/conf/httpd.conf), Mod­Rewrite is enabled if the line “LoadModule rewrite_module modules/” does not have a '#' in front of it. If you get an error code 500 while trying to browse the directory with the .htaccess file, Mod­Rewrite is not enabled. If your website is hosted and you have problems, talk to your web host about your Apache configuration and ask if mod_rewrite capability is enabled. Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^ [nc] rewriterule ^(.*)$$1 [r=301,nc] Note: replace “” with your domain name How to define 'preferred domain' using Google Web Master Tools The preferred domain is the one that you would liked used to index your site's pages (sometimes this is referred to as the canonical domain). Links may point to your site using both the www and non­www versions of the URL (for instance, and The preferred domain is the version that you want used for your site in the search results. In addition, defining a preferred domain can be helpful to your Google Page Rank (GPR) because you won't have two copies of the same page indexed. Each page is only able to pass a fixed amount of PR. If it is passing PR to both the non­www and www versions of your domain, both pages will only get half the correct amount. If the www redirects to the the non­www, the non­www will get all the PR. You can set your preferred domain by adding the site to your Google Sitemaps account and verifying site ownership. Then: