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

General help with installation, scripts, etc....

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

Postby brianpeiris » Sun Jun 12, 2005 4:28 pm

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 :?:
brianpeiris
 
Posts: 2
Joined: Sun Jun 12, 2005 4:24 pm

Postby kevin » Fri Aug 12, 2005 11:31 am

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)
kevin
CWH Staff
 
Posts: 245
Joined: Mon Dec 13, 2004 12:48 pm
Location: Vancouver, BC


Return to General Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron