bspacer1 bspacer2
webmail hosting forum clients about

Computer Co-op, CornerNET Internet Gateway, and PJR Solutions is owned by PJR Sales & Service. Quality products and online services since 1991. We can be your
Complete Computer Connection

Hosting @ $5.95

Domains @ $16.98
Home PagePortal HomeClient AreaAnnouncementsKnowledgebaseSupport TicketsDownloadsRegister

Knowledgebase
You are here: Portal Home > Knowledgebase > cPanel Related Issues > cPanel HOW-TOs > How can I enable Mod-Rewrite Module?

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?

Add to Favourites
Print this Article

Also Read
How can I create different types of web redirect with my cPanel? (Views: 9229)
How can I enable anonymous FTP access in cPanel? (Views: 10271)
How can I retrieve the raw Apache access logs for my site? (Views: 2078)
How can I check my quota and bandwidth limits/usage? (Views: 11911)
How can I password protect a directory with cPanel? (Views: 11147)

Powered by WHMCompleteSolution


Copyright © 1994-2021 PJR Sales and Service All Rights Reserved