Revision [2486]

This is an old revision of ModRewrite made by DarTar on 2004-11-26 13:48:09.

 

HelpInfo Wikka Documentation

Wikka and RewriteRules


Mod_rewrite translates URLs like http://wikka.jsnx.com/DotMG to http://wikka.jsnx.com/wakka.php?wakka=DotMG.

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]
</IfModule>

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
</IfModule>



CategoryDocumentation CategoryDevelopment
There are 32 comments on this page. [Show comments]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki