Home  |  About  | Last |  Submit  |  Contact
AllQuests.com



Previous Question:  Do I need to bother with IE 5?  Web Page DesignNext Question:  vps account overloading  Server Management
Question domain without www. not working ( SitePoint Forums Server Management )
Updated: 2008-02-03 06:10:30 (12)
domain without www. not working

I just got brand new VPS, and i don't know how to make domains working without "www." before domain it. It's working only with www.domain.com, domain.com is not working. I'm using Plesk. Please advice..


Have a nice day,
--Grega

Answers: domain without www. not working ( SitePoint Forums Server Management )
domain without www. not working

I believe there's a way to have the server rewrite non-www-s to www-s. It should be in the Apache mod-rewrite docs somewhere, and in tutorials.

Mittineague

domain without www. not working

Plesk on Apache or Windows?

FFCus

domain without www. not working

Apache

acheron

domain without www. not working

I'd be no help, I'm a Windows admin. Sorry.

The Plesk Support forums are pretty good for help as well.
http://forum.swsoft.com/

FFCus

domain without www. not working

I found this (one of many pages I'm sure) that has what you are looking for under "Canonical Hostnames" http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Mittineague

domain without www. not working

I don't have acces to this files. I can do it thru Plesk. But don't know how

acheron

domain without www. not working

in an htaccess file (assuming you're allowed this) in your web root......
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST}   !^www\.yourdomain\.com [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^/(.*)         http://www.yourdomain.com/$1 [L,R]

rossriley

domain without www. not working

It is due to httpd.conf wrong configuration for your domain. Just do the following:

httpd.conf file and edit that.

Find the "domain.com"

Now, find:
Code:
ServerAlias "domain.com"
And Check whether the following line is just at the end of that para or not:
Code:
ServerName "www.domain.com"
If you are using linux the apache conf will be here:
Code:
/usr/local/apache/conf/httpd.conf
Regards

talence

domain without www. not working

Quote:
Originally Posted by talence

Now, find:
Code:
ServerAlias "domain.com"
Only problem with using ServerAlias is that it sets up a 302 redirect. The .htaccess rewrite can be configured to a 301 which is of course the correct redirect for search engine kindness.

rossriley

domain without www. not working

Quote:
Originally Posted by rossriley
Only problem with using ServerAlias is that it sets up a 302 redirect. The .htaccess rewrite can be configured to a 301 which is of course the correct redirect for search engine kindness.
what i told

same goes, and i saw he is having vps, and it is always better to use the httpd.conf file. Although Servername also need to be checked for www to be working.

Regards

talence

domain without www. not working

Usually,
You could leave it alone, the main reason for one working but not the other is the DNS not fulling updating yet. Assuming, at this time of the post, you just got the VPS and just changed the Nameservers to it, for the first 24 hours it may just work on www. then as it finishes it should work on both however it doesn't restart your computer. If you are still facing Apache problems, look into httpd.conf file and edit a few settings. I would name them, but posts above explain how to do so.

Zertex

domain without www. not working

Quote:
Originally Posted by Zertex
Usually,
You could leave it alone, the main reason for one working but not the other is the DNS not fulling updating yet. Assuming, at this time of the post, you just got the VPS and just changed the Nameservers to it, for the first 24 hours it may just work on www. then as it finishes it should work on both however it doesn't restart your computer. If you are still facing Apache problems, look into httpd.conf file and edit a few settings. I would name them, but posts above explain how to do so.
Quite interesting you know. How this DNS not fulling updating yet, then how his site will work

Although it is totally a problem regarding the apache configuration. And i hope it should be fixed already As there are still no reply from the author.

regards

talence

Previous Question:  Do I need to bother with IE 5?  SitePoint Forums  Web Page DesignNext Question:  vps account overloading  SitePoint Forums  Server Management

- Source: domain without www. not working SitePoint Forums Server Management
- Previous Question: Do I need to bother with IE 5? SitePoint Forums Web Page Design
- Next Question: vps account overloading SitePoint Forums Server Management