#1  
Old 26th July 2012, 15:30
petergus petergus is offline
Junior Member
 
Join Date: Jul 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default www and non-www

confused about the www and such.

at the moment i can only get to my sites with www and when i used just http://domain.com it goes to a common page saying its on a shared IP.

i thought this was the hostname when setting up a site, but www is always there even if i try to remove it...?

what i want is to use NON-www (just http) by default and www should redirect to that.
Reply With Quote
Sponsored Links
  #2  
Old 26th July 2012, 16:25
createch createch is offline
Senior Member
 
Join Date: Aug 2007
Posts: 118
Thanks: 24
Thanked 16 Times in 13 Posts
Default

Please set up a co-domain

e.g. For www.abc.com
(hostname: www, domain: abc.com)

you should set up a co-domain: abc.com
(hostname: blank, domain : abc.com)

Regards,
Createch
Reply With Quote
  #3  
Old 26th July 2012, 16:37
petergus petergus is offline
Junior Member
 
Join Date: Jul 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

right. and this will not lead to duplicate domain issues?

google often says you should have www or non www, not both, so one needs a 301 redirect or so.
Reply With Quote
  #4  
Old 26th July 2012, 17:55
createch createch is offline
Senior Member
 
Join Date: Aug 2007
Posts: 118
Thanks: 24
Thanked 16 Times in 13 Posts
Default

Let me explain in greater depth.....

Actually internet works in this way:

When someone types http://www.abc.com in a web browser, it will first resolve thru the DNS system to an IP address and then redirect the traffic to that particular IP (a web server).

And the webserver, assuming it is running Apache, will have a http.conf file, containing the information of the virtualhost, and then display the website in that directory. (this information of the directory is specified as the DocumentRoot of the virtualhost)

By setting a co-domain "abc.com", the virtualhost directive will contain a server alias, telling that both "abc.com" and "www.abc.com" are actually pointing to the same DocumentRoot, hence the user will see the same thing for both "http://abc.com" and "http://www.abc.com".

ISPconfig 2 supports easy setting of co-domain.

I don't see there is anything related to 301 redirect or what you called "duplicate domain issues"
Reply With Quote
  #5  
Old 26th July 2012, 18:37
petergus petergus is offline
Junior Member
 
Join Date: Jul 2012
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

thanks for that

*my* understanding of all this is that the www is like a subdomain and therefore a separate domain, and if both show the same content, well it shouldn’t be a problem, but i just remember on my old server (with some panel of who knows what, "dream"host ), if i selected no www, then typing in www would redirect, or change to non www.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:17.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.