Forum Moderators: phranque

Message Too Old, No Replies

Why my domain opening without www

         

Surendra Singh

1:48 pm on Oct 28, 2014 (gmt 0)

10+ Year Member



i have a domain called (mydomain.org)

when i enter my domain in address bar like this e.g (mydomain.org),Its opening and i can see my website


but when i try with www.mydomain.org, its redirect to http:// mydomain.org



I want my website address proper e.g. http:// www. mydomain.org and most important when anyone open my website without www it will redirect to proper url (http:// www. mydomain.org)automatically.

How can I do this all. please help me;

Thank You

not2easy

3:43 pm on Oct 28, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi Surendra, you don't mention what kind of site or server you are using so I'm only giving very general answers - on Apache you would want to add a canonical rewrite to your .htaccess file. If it is Wordpress you can do this in your Settings. If it is something else, you would need a different answer.

lucy24

5:55 pm on Oct 28, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Clearly this is not your own server, and it sounds as if you currently don't have an htaccess (or equivalent in That Other Server) at all. So I will guess that you're on shared hosting. Somewhere on the host's control panel there is a checkbox where you can specify the preferred form of your domain name, with or without www. It's good that it currently defaults to one form; you just need to find the setting and change it to the other form.

I want my website address proper

Well, for a given definition of "proper" ;) There have been long, long discussions about this.

phranque

7:58 pm on Oct 28, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, Surendra Singh!

the response should include a 301 status code and a Location: HTTP Response header that refers to a URL that specifies the canonical protocol and hostname.

piatkow

4:39 pm on Oct 29, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



As an aside the copy of Firefox 32 that I am using automatically adds in a www for example.com. I cross checked with IE and it is definitely the browser doing this rather than the server.

I agree with Lucy24 that you have probably simply failed to change a default on your cpanel.

lucy24

6:41 pm on Oct 29, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



the copy of Firefox 32 that I am using automatically adds in a www

Yikes.
:: quick detour to check ::
There must be some other variable, because mine (FF 32 for Mac) doesn't do this. Whew.

piatkow

3:24 pm on Oct 31, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Using a different machine also with FF32 and no www added. A little Googling reveals a function called "domain guessing". Why my copy downloaded with it on and this copy with it off I have no idea.

RandallTT

2:08 am on Nov 7, 2014 (gmt 0)

10+ Year Member



Hi, www is just a prefix used by mostly old websites. Newer websites tend to not have the prefix "www" because in the first place it is just put there to show that you owned a piece of prime real estate on the World Wide Web.

lucy24

6:33 am on Nov 7, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I do believe each separate assertion in the preceding post could lead to several pages of heated argument ;)

not2easy

3:54 pm on Nov 7, 2014 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Not to mention that it does nothing to address the OP..