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 totype the URL without the “www” sub domain. Web servers display pages though the main domainname 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 tosomeone@example.cominstead of addressing ittosomeone@mail.example.com. 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 .htaccessfile, 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_modulemodules/mod_rewrite.so” does not have a '#' in front of it. If you get an error code 500 while trying tobrowse the directory with the .htaccess file, Mod-Rewrite is not enabled. If your website is hosted andyou have problems, talk to your web host about your Apache configuration and ask if mod_rewritecapability is enabled.
Options +FollowSymlinksRewriteEngine onrewritecond %{http_host} ^example.com [nc]rewriterule ^(.*)$ http://www.example.com/$1 [r=301,nc]
Note: replace “example.com” 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 isreferred to as the canonical domain). Links may point to your site using both the www and non-wwwversions of the URL (for instance, http://www.example.com and http://example.com). The preferreddomain is the version that you want used for your site in the search results. In addition, defining apreferred domain can be helpful to your Google Page Rank (GPR) because you won't have two copiesof the same page indexed. Each page is only able to pass a fixed amount of PR. If it is passing PR toboth 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 preferreddomain by adding the site to your Google Sitemaps account and verifying site ownership. Then:
Add a Comment
Bruce McFarlandleft a comment
Mow Rowleft a comment
luxuriantamuletleft a comment
Micheas Hermanleft a comment
Micheas Herman replied:
CodeGeronimoleft a comment