How can I enable Mod_Rewrite in Linux Reseller Hosting?
This module provides a rule-based rewriting engine to rewrite requested URLs on the fly. mod_rewrite is highly useful if you are creating a PHP driven web site.
For example, you wish to have nice search engine and human friendly URLs appearing in the address bar.
Kindly follow the below procedure to anble the Mod_Rewrite,
1. Create a file called .htaccess in the folder you wish the rewrite rules to apply.
2. The first line in the file should be RewriteEngine On
3. After this, you can put all the rules you require.
Example mod_rewrite file:
RewriteEngine on
RewriteRule ^([^/\.]+).htm$ index.php?page=$1 [L]