Revision [7576]

This is an old revision of ModRewrite made by DotMG on 2005-04-25 13:35:09.

 

WikkaDocumentation Wikka Documentation

Wikka and mod_rewrite


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

Wikka works with mod_rewrite. And Wikka works without mod_rewrite.

During installation, Wikka will try to figure out if mod_rewrite is available. If Wikka does not detect mod_rewrite, it's possible to manually configure Wikka to use it after installation.

Follow this simple instruction:

Change these lines:
    "base_url" => "http://my.domain.com/wikka.php?wakka=",
    "rewrite_mode" => "0",


to this:
    "base_url" => "http://my.domain.com/",
    "rewrite_mode" => "1",


That's it. Notice the small change. We are just removing "wikka.php?wakka=" and then setting rewrite_mode to 1.

If after following the instruction above mod_rewrite is still not working, there's only one possibility. Your web host does not have mod_rewrite configured so that you can use it.


Maybe not as simple as it seems with Windows based servers?


Typing "http://MyWikkaSite/WikkaPage" does not work and I have to type "http://MyWikkaSite/wikka.php?wakka=WikkaPage".

I have a windows 2K base, Apache+PhP+MySql and no trouble so far with my Wikka. As I fear I could have broke something with some additional code of mine, I tried a new setup from scratch and still have the problem.
Any idea where this could comes from? --ChristianBarthelemy

RewriteRule ^wikidir/(.*)$ realwikidir/wikka.php?wakka=$1 [QSA,L]
It seems that the Win32's mod_rewrite module lowercases only the texts before the first slash.
If you use RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L], with url http://localhost/NewPage/EdiT you have $_GET['wakka'] = "newpage/EdiT". --DotMG

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