Joomla : Non-www URLs

1. SEO friendly URLs and non-www URLs

While using SEF Plugins with Joomla, one of the common issue encountered is that the default urls are without www i.e. http://example.com (assuming that Joomla is installed in the root domain)

This might irritate webmasters causing duplicate url indexing
Solution:

a. Change your Live Site URL to http://www.example.com

Download the config file “configuration.php” and edit the variable $mosConfig_live_site value to set it to http://www.example.com.

This will cause all base URL to change to http://www.example.com, hence all your internal page urls would be linked through urls with www

b. Use htaccess/Mod_Rewrite to redirect your domain http://example.com to http://www.example.com

Here is how

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

Popularity: 13% [?]

This entry was posted in Joomla and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *