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. 

Was this answer helpful?

 Print this Article

Also Read

How can I login into cPanel / WHM / Webmail?

You can login to cPanel by : http://cpanel.yourdomain.com http://yourdomain.com:2082...

How to provide WHM/Master Reseller with Zamfoo Panel?

If you have Master/Alpha Reseller account with ZinkHost, do the following to give WHM Panel to...

How can I execute php code as .htm or .html files?

In your .htaccess file insert this line of code:AddType application/x-httpd-php .html .htm...

How do I configure my desktop's mail client with an email account?

A mail client is an application you use to check your email. The mail client can be either web...

What's the Hostname & Port for MySQL?

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

Powered by WHMCompleteSolution