Forum Moderators: open

Message Too Old, No Replies

problem with my website

         

sunny152

3:06 pm on Jan 25, 2009 (gmt 0)

10+ Year Member



Hi Friends,
I have one problem with my website.When my visitors type http://subdomain.example.org then my website is visible but when they type http://www.subdomain.example.org then my website is not visible getting 403 error message.Is there any solution to my problem? Please help.

Sunny

[edited by: encyclo at 4:47 pm (utc) on Jan. 25, 2009]
[edit reason] no personal URLs please, see posting guidelines [/edit]

Quadrille

3:59 pm on Jan 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to arrange a 301 permanent redirect from subdomain.example.com to www.subdomain.example.com - or vice versa. That way, whatever they choose, the visitor will reach the site, displayed the way you choose.

[edited by: Quadrille at 4:12 pm (utc) on Jan. 25, 2009]

sunny152

4:07 pm on Jan 25, 2009 (gmt 0)

10+ Year Member



Hi,
Thanks for your reply.Can you please explain clearly how to do this as normally i'm just uploading the home page as index.html to the remote server.

Thanks,
Sunny.

Quadrille

4:17 pm on Jan 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tragically no - I'm technologically challenged - but if you search this site for [301 permanent redirect] or even [www problem] or [canonical url], You'll find ways that suit your server type and server access.

With many hosts, you can do it yourself with one click (yes, I choose my hosts carefully!)

:)

phranque

11:33 pm on Jan 25, 2009 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld [webmasterworld.com], sunny!

you should first verify that your dns configuration has www.subdomain.example.org pointing to the correct ip address and that your server at that ip address has been configured to direct requests to that virtual host to the correct document root.

tedster

2:34 am on Jan 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It may help to emphasize this point - the opening "www" is not without technical meaning. It is a different "subdomain" (really a hostname) than than the version without the "www". Because these are separate hostnames, the server must be configured to have them both resolve, if that is what you want - and it is a good idea.

If you want both versions working, you are wise to use a 301 redirect from www.subdomain.example.org to subdomain.example.org without the "www". This will avoid duplicate urls being indexed for the same content.