Bhupendra Home | Contact Me

Joomla Hacks

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://domain.com (assuming that Joomla is installed in the root domain)

This might irritate webmasters causing duplicate urls indexing
Solution:

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

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

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

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

Here is how

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

3 Comments

  1. iswzaoru said,

    August 22, 2007 @ 5:17 am

    iswzaoru…

    iswzaoru…

  2. yiphsppr said,

    August 22, 2007 @ 5:19 am

    yiphsppr…

    yiphsppr…

  3. chrjdwtg said,

    August 22, 2007 @ 5:20 am

    chrjdwtg…

    chrjdwtg…

RSS feed for comments on this post · TrackBack URI