Mod Rewrite – how do I enable it?

In order to enable Mod_Rewrite for your site, you should create a file called .htaccess in the directory where you wish the rewrite rules to apply.
In most of the cases, the .htaccess file has to be located in the main domain folder that in most cases has the same name as your domain name. You can create an .htaccess file and edit it to insert the necessary code using the online File Manager (Files > File Manager) tool located in your Web Hosting Control Panel.

The first line of this text file should be:

RewriteEngine On


After that you can place your rewrite rules. Here is an example taken from WordPress:

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.