Joomla Redirecting Multiple URLs - Home Page

How not to lose Joomla home page link juice

Check your home page for how many URLs will work i.e:

http://www.yourdomain.com/
http://www.yourdomain.com/home ( whatever is the name of your default menu item )
http://www.yourdomain.com/index.php
http://www.yourdomain.com/index.html
http://yourdomain.com/
http://yourdomain.com/index.php
http://yourdomain.com/index.html
http://yourdomain.com/home ( whatever is the name of your default menu item )

Multiple Home Page URLs

As you can see there could be eight different URLs, Google and other search engines list all of these URLs in the rankings spreading out your link strength for that one page, search engines will also see this as duplicate content on your site, this carries a penalty and lowers your ranking for that page.

You can use this technique for checking your links in Google ( site:www.yourdomain.com ), obviously use your own domain name.  This will show you all the different URLs listed for your site in Google, see how many of them link to your home page.

Joomla Canonical Redirect - Home Page

Joomla Search Engine Optimisation Campaign

Call 0800 756 6482 or +44 (0)1524 63492 to get the ball rolling on your SEO Campaign

Alternatively

For further information about our Joomla SEO service please use our contact form.

To fix Joomla canonical redirect issues you need to have an ftp program installed on your computer, these could be WinSCP, FileZilla, etc.  Click through to your sites root ( normally public_html ) and scroll down below the folders, the first file should be .htaccess, open this file with a text editor ( do not use windows word ).

Look for this snippet of code:

Options +FollowSymLinks

#  mod_rewrite in use
RewriteEngine On

If the two lines above without a hash, have a hash at the beginning of the line, then delete the hash.  If these lines are not in your .htaccess file then add them.

Next look for this snippet of code:

########## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
########## End - Custom redirects

Joomla .htaccess Redirect None www To www

Now use the next two lines to make your site redirect to the 'www.' version only:

########## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#

RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

########## End - Custom redirects

Joomla 301 Redirects .htaccess

Next to take care of the index links and the default menu item link:

########## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#

RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]

Redirect 301    /home    http://www.yourdomain.com/
Redirect 301    /index.php    http://www.yourdomain.com/
Redirect 301    /index.html    http://www.yourdomain.com/

########## End - Custom redirects

Stop Multiple Home Page URLs

The eight URLs all now use just one, http://www.yourdomain.com/ this stops duplicate content and loss of link strength.


© Copyright 2002-2016
Dean Marshall Consultancy Ltd - all rights reserved
Registered in England and Wales, Company number 6615299
A team of professional developers specialising in custom Joomla development

Dean Marshall Consultancy - a Member of W3C Sites XHTML valid website valid CSS website design WAI conformant website design

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. This site is not affiliated with, or endorsed by, Open Source Matters or the Joomla! Project.