Welcome to WebmasterWorld Guest from 54.146.221.231

Message Too Old, No Replies

301 redirects to "www" and Joomla

     
1:21 pm on Oct 12, 2012 (gmt 0)

Preferred Member

5+ Year Member

joined:Apr 29, 2008
posts: 624
votes: 0


I was looking at the subpages of my website www.mywebsite.com/my-sub/page.html and i noticed that when I type mywebsite.com/my-sub/page.html ( without the www.) in front it I get re-directed to the homepage.

Is that a known issue of joomla and does it mean that google cache both version of my site causing site wide duplicate content ?

Thank you
3:11 pm on Oct 12, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Without that redirect you would have duplicate URLs. As long as the redirect is a 301 status and not a 302, and as long as the redirect happens in just one step - then I'd say your Joomla installation is set up correctly.
8:27 pm on Oct 12, 2012 (gmt 0)

Moderator This Forum from GB 

WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month

joined:Apr 30, 2008
posts:2510
votes: 141


@tedster, from reading the OP question, I got the impression that he says that all non-www pages get redirected to www home page.

I do not think this is a good idea - the redirect should be to www version of the non-www page, not to the home page.

So something in Joomla is probably not set up correctly.
8:28 pm on Oct 12, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


Mass redirects to the site root are rarely a good idea.

I'd guess there's a double redirect chain there, not a single step.
8:30 pm on Oct 12, 2012 (gmt 0)

Preferred Member

10+ Year Member

joined:Dec 12, 2004
posts:608
votes: 1


Google would treat it as soft 404. I would check the .htaccess file.
8:34 pm on Oct 12, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


My apology, I read too fast and didn;t grasp the whole situation.

I agree with the other replies - do not redirect all requests to the home page, but rather to the same filepath with the "www" added to the hostname.

I don't think this error is inherent in Joomla, at least not from my experience. It's good you noticed it. There's lots of discussion in our Apache Forum [webmasterworld.com] about the correct way to create a better 301 redirect using .htaccess
8:49 pm on Oct 12, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


This is one of the reasons I always recommend that when setting up WMT, all sites should be registered both with www and non-www URLs. The WMT non-www reports can reveal some major problems with site configurations that are not seen when looking only at the www data.