How can I enable Mod-Rewrite Module?

In order to enable Mod_Rewrite for your site please create a text file called .htacccess in your public_html directory.

The first 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

Many applications come with ready to use rewrite rules that can be found in a file called htaccess.txt.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to change a cPanel password through WHM?

  From time to time, account holders lose their passwords, and need to rest them. Using...

How to modify an account's disk quota in WHM?

  You can use Quota Modification directly from the WHM to affect on how much disk space...

Can I modify the suspended account page?

  Feel free to modify the suspended account page it to your liking. Follow these steps to...

How do I list the suspended accounts in WHM?

  If you want to list the suspended accounts, please do the following: Login to your WHM...

How to get info on bandwidth usage from WHM?

  This process is simple. Simply follow the below outlined instructions: Log to the WHM...

Powered by WHMCompleteSolution