Revision [2483]

This is an old revision of ModRewrite made by JsnX on 2004-11-26 13:24:16.


Mod_rewrite translates URLs like to

Mod_rewrite is not installed on all servers, so it's necessary to wrap the mod_rewrite directives in an "<IfModule mod_rewrite.c>" in all .htaccess files containing mod_rewrite directives:

The .htaccess file in the root directory contains the following mod_rewrite code:
<IfModule mod_rewrite.c>
 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} -d
 RewriteRule ^(.*/[^\./]*[^/])$ $1/
 RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]

Directories that are accessed directly by client browsers, such as /css and /images, contain a .htaccess file with the following code:
<IfModule mod_rewrite.c>
RewriteEngine off
There are 32 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki