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/mod_rewrite.so” 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} ^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 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, http://www.example.com and http://example.com). 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:

XYZulu Hosting Blog

  • We all use email, and probably these days simply take it for granted. Are there some things to be aware of when choosing how to setup your email? Yes! Let’s explain. Email is like a mobile phone number, it’s not something you want to change often (if at all) and it’s also something you want … Continue reading "Email essentials"

  • Almost every week a new item hits the news about compromised computer systems and stolen passwords. Do you know that passwords are actually sold on the black market for real money? Why? Because compromised passwords can, and are, being used to steal real money from internet users. compromised passwords are being used to steal real … Continue reading "Has your password been stolen?"

  • Secure messaging on the internet, is this even possible? Believe it or not, it is. Why should you be interested, and how can you also send/receive secure messages? Secure messaging is actually possible What is secure messaging and why should you be interested? It’s fair to say that despite what you think or have been … Continue reading "Secure messaging, how?"

  • What is php? Why is having access to use multiple versions of php so important? Does XYZulu offer multiple versions of php? What is PHP? According to Wikipedia, “PHP is a general-purpose scripting language that is especially suited to server-side web development, in which case PHP generally runs on a web server. Any PHP code in … Continue reading "Does your web host offer multiple versions of php?"

  • Instead of typing your password each time you sign in to your Google Account, you can have a prompt sent to your phone. Security is important, but constantly having to type your password and enter your 2FA (you know, those codes that change every 30 mins) code can be tedious. You already have 2FA enabled I’m … Continue reading "Sign in with your phone instead of a password"