Showing posts with label mod_rewrite. Show all posts
Showing posts with label mod_rewrite. Show all posts
Sunday, August 23, 2015
How to Enable Mod
Log on to cPanel. Click on 'File Manager.'
Navigate to your root directory (public_html). Click the '.htaccess' file, then click 'Edit.'
Type 'RewriteEngine On' to enable mod_rewrite. You can use mod_rewrite to write a number of commands such as controlling access to your website and redirecting visitors (see Resources) . To redirect your domain to another directory type the following:RewriteEngine OnRewriteCond %{HTTP_HOST} ^www.domain.com$RewriteCond %{REQUEST_URI} !^/HTML2/RewriteRule ^(.*)$ /HTML2/$1Click 'Save Changes.'
VPS Hosting
Labels:
Click,
Edit,
enable,
file,
htaccess,
mod_rewrite,
RewriteEngine,
Type,
write
Subscribe to:
Posts (Atom)