Welcome to WebmasterWorld Guest from 54.144.79.200

Message Too Old, No Replies

301 redirects to "www" and Joomla

     

member22

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

5+ Year Member



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

tedster

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

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



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.

aakk9999

8:27 pm on Oct 12, 2012 (gmt 0)

WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month



@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.

g1smd

8:28 pm on Oct 12, 2012 (gmt 0)

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



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.

levo

8:30 pm on Oct 12, 2012 (gmt 0)

10+ Year Member



Google would treat it as soft 404. I would check the .htaccess file.

tedster

8:34 pm on Oct 12, 2012 (gmt 0)

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



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

g1smd

8:49 pm on Oct 12, 2012 (gmt 0)

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



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month