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?

Also Read

You need to Administer your WordPress sites

WordPress, in particular, powers over 40% of the websites on the internet. This makes it a...

How to force SSL/HTTPS with .htaccess

After having SSL enabled for your domain, you may want to route all your traffic to HTTPS rather...

How to Setup your new SSL Certificate

Setting up your newly purchased SSL Certificate is easy and all automated. However, before you...

How to set a secure password

Your password cannot be too strong, the more complex and long it is, the better! A combination...

Folder and File Permissions

For the security of your websites, these should be your default permission settings:...