How can I enable Mod-Rewrite Module?

In order to enable Mod_Rewrite for your site you should create a text file called .htacccess in the directory where you wish the rewrite rules to apply.

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

What's the Hostname & Port for MySQL?

When configuring any of your scripts on the server, use the following connection info to connect...

Stats not updating!

We allow our customers to update the stat by themselves. So login to your AWSTATS and click on...

I have problems accessing my mysql database remotely

If you have problems accessing your database remotely please make sure that: You are using the...

HTTP Error Codes !

400 Bad Request The user’s request contains incorrect syntax.   401 Unauthorized...

How To Set Up A Cron Job

This tutorial is going to show you how to setup a cron job in cPanel the easy way. You can set...