Canadian Webhosting Forums Forum Index Canadian Webhosting Forums
Discussion Forums
 
 FAQFAQ   SearchSearch      RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

force Redirecting yourdomain.com to www.yourdomain.com :?:

 
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> General Help
Author Message
brianpeiris



Joined: 12 Jun 2005
Posts: 2

PostPosted: Sun Jun 12, 2005 3:28 pm    Post subject: force Redirecting yourdomain.com to www.yourdomain.com :?: Reply with quote

I've found this webpage that describes the procedure to enable this, however I cannot find the httpd.conf file through cpanel, can anyone help Question
Back to top
kevin
CWH Staff


Joined: 13 Dec 2004
Posts: 209
Location: Vancouver, BC

PostPosted: Fri Aug 12, 2005 10:31 am    Post subject: Reply with quote

In a shared hosting environment, customers cannot access or edit the httpd.conf file.

To redirect domain.com to www.domain.com, just put this in index.htm or index.html file on the top:


<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.domain.com">

OR:

Create .htaccess file which contains:

Redirect domain.com http://www.domain.com

and upload to your root content directory (usually in /www or /public_html)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Canadian Webhosting Forums Forum Index -> General Help All times are GMT - 8 Hours
Page 1 of 1

 


Hosting Plans :: Flash Tutorials :: Contact Us :: Privacy Policy


Powered by phpBB, MySQL and PHP