How to Enable Mod_Rewrite Module

In order to enable Mod_Rewrite for your site you should create a text file called .htacccess in the directory where you wish the rewrite rules to apply.

The first line of this text file should be:

RewriteEngine On

After that you can place your rewrite rules. Here are some examples for WordPress's default htaccess:

RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Many applications come with ready to use rewrite rules that can be found in a file called htaccess.txt. If you have problems with mod_rewrite, you may contact our support desk from your client area.

Was this answer helpful?

 Print this Article

Also Read

How to generate CSR in cPanel for SSL Certificate issuing

Follow these simple steps Login to cPanel (yourdomain/cpanel) Click SSL/TLS > Generate,...

Default files / folders of cPanel

Regular files & folders In a fresh cPanel hosting account, these are the files and folders...

How to Create Sub-Accounts Under my Account

Log in to Core   Navigate to Contacts/Sub-Accounts under Account Add a new...

How to Resolve "cPanel Error: Your IP has Changed".

cPanel will sometimes throw out the error "IP address has changed!" while you're trying to...

How to use ClamAV Virus Scanner

To run a virus scan, follow these steps: Log in to cPanel On the Advanced tab of the...