How can I enable Mod-Rewrite Module? Print

  • 0

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.


Was this answer helpful?

« Back