Page 1 of 1

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

PostPosted: Sun Jun 12, 2005 4:28 pm
by brianpeiris
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 :?:

PostPosted: Fri Aug 12, 2005 11:31 am
by kevin
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)