Wednesday, April 10, 2013

How can I enable Mod-Rewrite Module?




·  Log on to cPanel. Click on "File Manager."
Navigate to your root directory (public_html). Click the ".htaccess" file, then click "Edit."
 To redirect your domain to another directory type the following:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteCond %{REQUEST_URI} !^/HTML2/
RewriteRule ^(.*)$ /HTML2/$1
Click "Save Changes."


No comments:

Post a Comment