hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : How to always use www. to reach domain?
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

How to always use www. to reach domain?

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-03-2003, 01:46 PM
BMM BMM is offline
Junior Guru Wannabe
 
Join Date: Sep 2001
Posts: 86

How to always use www. to reach domain?


We want customers to only access the site by http://www.ourdomain.com when they type in http://ourdomain.com. Is there a way to set it up so that any time ourdomain.com is used it redirects the visitor to www.ourdomain.com?

We had this setup properly using the following in the httpd.include file but can't seem to get it to work again.

/etc/httpd/conf/httpd.include

RedirectMatch (.*)\.*$ http://www.ourdomain.com

Maybe we are not putting it in the right location within the httpd.include file.

Also, we are using plesk and changed some passwords but don't see how this would make a change in the httpd.include in such a way to cause this problem file. The only reason I mention this is because this is the only thing that we have done recently before this problem started to occur.

Any ideas?

Reply With Quote


Sponsored Links
  #2  
Old 07-03-2003, 04:02 PM
robinbalen robinbalen is offline
Web Hosting Master
 
Join Date: Aug 2002
Location: UK
Posts: 1,040
Sounds a little complex for what you're trying to achieve.

Try looking up the ServerAlias functionality under Vhosts in the Apache manual, it does what you need...

(eg:
ServerName www.ourdomain.com
ServerAlias ourdomain.com
)

(note, off the top of my head... so check syntax)

__________________
Robin Balen
Gyron Internet Ltd - http://gyron.net/
UK colocation, managed hosting and connectivity services with 100% uptime SLAs

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Domain Marketplace Sedo Updates Domain Listing Process Web Hosting News 2012-09-20 15:01:39
Growing Domain Market Sedo Clarifies Pricing, Features with Factsheet Web Hosting News 2012-01-27 16:37:20
Domain Marketplace Sedo Offers Previously Unreleased .CO Domains Web Hosting News 2012-01-11 15:12:49
Domain Platform Provider LogicBoxes Hits 6 Million Domains Milestone Web Hosting News 2011-11-08 21:10:40
Domain Registrar Dotster Partners with Online Domain Marketplace Sedo Web Hosting News 2011-10-18 15:47:53


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?