How can I enable Mod-Rewrite Module?

You can enable mod_rewrite by adding the following line in the .htaccess file of your website:

RewriteEngine On

After that line you should place your custom rewrite rules.

For example if you wish to redirect your domain to an HTTPS connection you should place the following lines in your .htaccess file:


You can edit the .htaccess file using with the File Manager in cPanel, or via FTP.

You find this article useful? Click here to learn more about SiteGround web hosting experts and what else we can do for you!