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.

 

If you have problems with mod_rewrite, you may ask for assistance. You can always count on SiteGround's Support for such problems

  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

I want to buy one dedicated IP and make it shared

If you are a reseller who wants to buy a single dedicated IP address, then assign it to all...

I upgraded the bandwidth or disk space limit on my packages. Why aren't my sites updating?

I edited a hosting package. Why aren't my sites showing up with the new stats? Whenever you...

How to reset a reseller client's password

Instead of reading this, you can watch the movie tutorial. Go to WHM and click Password...

Do you have a manual for our reseller panel?

Yes Go to http://www.cpanel.net/docs/whm/ to view the documentation for Web Host Manager...

How can my clients view their site before the DNS has propagated?

They can go to: http://youriphere/~theirusernamehere/ The IP and user name assigned to a domain...