How To Enable Mod_rewrite Module ?
Based on a regular-expression of a parser the mod-Rewrite module uses a rule-based rewriting engine that is used to rewrite the requested URLs at server level. A rewrite engine may be a software that modifies an web URL’s look (URL rewriting). Rewritten URLs (sometimes called short, fancy URLs, or search engine friendly – SEF) are used to provide shorter and a lot of relevant looking links to websites. it’s additionally designed to support unlimited number of protocols (rules) and an unlimited number of attached rule conditions for every rule, to supply a really flexible and powerful URL manipulation mechanism. So as to enable Mod_Rewrite for your website you must create a text file known as .htacccess in root directory wherever you want the rewrite rules to apply.
Lets see a way to alter Mod-Rewrite Module and therefore the 1st line of this text file should be:
RewriteEngine On
After that you can place your rewrite rules. Here are some examples for Joomla’s SEF option:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php
In a file know as htaccess.txt there are some applications already have ready to use rewrite rules that you can find there. But if you have any issues with mod_rewrite, you can contact to your web host for help or raise a ticket