The Apache mod_rewrite module uses a rule-based rewrite engine to rewrite the URLs at server-level. A rewrite engine is a software that changes the appearance of a URL (rewrites it). Rewritten URLs (also known as short, fancy or SEF URLs) are used to form shorter, more relevant links to web pages.
To activate mod_rewrite for your website, you must create a text file called .htacccess in the directory where you want to apply the rewrite rules.
The first line of this text file should be:
RewriteEngine On
Here are some examples for SEF option in Joomla:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
RewriteRule ^(content/|component/) index.php
If you encounter problems with the mod_rewrite module, please contact us. HostX offers the best cPanel web hosting service and can assist you in solving your problems.
