18 Aug, 2018
Welcome! Guest
[ Login ]
Home | Customer Centre | Support Centre
RSS | Set Homepage | Favorite
Search:
Browse:

How to enable Mod-Rewrite Module

Date Created: 15 May, 2012   (6 year(s) ago) Viewed: 6071 Rating: 

Overview

How to enable Mod-Rewrite Module
Click to Enlarge
How to enable Mod-Rewrite Module
This module uses a rule-based rewriting engine (based on a regular-expression parser) to rewrite requested URLs on the fly. It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule, to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests, of server variables, environment variables, HTTP headers, or time stamps. Even external database lookups in various formats can be used to achieve highly granular URL matching.

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.

Upload this file into the root of your domain(e.g. httpdocs). The changes take effect immediately.
Related Links
*** The above information is for reference only, Please seek independent technical advice if found necessary.
Was this article helpful?
You can bookmark it with your tracker:DiggredditDeliciousGoogle BookmarksWindows LiveFacebookSlashdot BookmarksPropellerTechnoratiBlinkListYahoo bookmarksMa.gnoliaSquidoo
Permalink:  
 
ec2Biz.com Interactive Multimedia Ecommerce Web Hosting Online Shop Domain name Solutions
©2018 Focus Network Company. All Rights Reserved.