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:
1
2
3
|
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yourdomain.com/$1 [R=301,L]
|
You can edit the .htaccess file using with the File Manager in cPanel, or via FTP.