Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do not want to use www.

Status
Not open for further replies.

thenewa2x

Programmer
Dec 10, 2002
349
US
When you visit my website ( it displays my website as it should. When you visit my website without the (pheera.com), it seems as if my site does not exist. My friends and family have trouble visiting my site because they are not accustomed to adding the prefix.

Is there any way I can fix this? I assumed it was something I need to change in Apache, such as configuration. Please redirect me if I'm wrong.

---------------------------------------
TINSTAAFL, which is why I contribute.
 
Nevermind, I figured it out.

---------------------------------------
TINSTAAFL, which is why I contribute.
 
For the benefit of others that read this in the future, I assume that you've found the ServerAlias directive.
 
The ServerAlias directive was probably the half of it. The other half was DNS. You have to add a record such as.

domain.com. IN A 123.123.123.123

Since DNS may be cached in the browser you use to visit your site (if you already attempted to view domain.com when you have not configured it), you may want to use another computer or somehow clear your DNS cache.

---------------------------------------
TINSTAAFL, which is why I contribute.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top