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