Revision [4445]
This is an old revision of ModRewrite made by ChristianBarthelemy on 2005-01-11 13:14:46.
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:
- Edit wikka.config.php (found in the root directory of the Wikka installation).
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",
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
- In Wikka, as distributed, the .htaccess file(s) take care of the rewriting, so if you want to use mod_rewrite, .htaccess is necessary - unless you copy the content into a section in httpd.conf (if you have root access). Without the appropriate mod-rewrite statements in either .htaccess or httpd.conf no rewriting will take place. -- JavaWoman
- the .htaccess file delivered with Wikka 1.1.5.3 is in the Wikka folder - still not working - I will try again later on...
- Works just fine on my Windows development machine. There is no dependency with Windows - only with Apache itself. What is important though is that the Apache version used has mod_rewrite available (as module, or compiled into it). If you don't control the server (or don't have root access) ask your hosting provider is mod_rewrite is available. Has it worked before on your server? If so, was Apache upgraded to a new version, or reconfigured?
- You were right: only 'AddModule mod_rewrite.c' was uncommented in the httpd.conf file while 'LoadModule rewrite_module modules/mod_rewrite.so' was not activated. Thanks a lot. This new InlineCommentFormatter is really nice! --ChristianBarthelemy
- So it works now, but I still have a strange problem when I try to create a new page by forcing the url to http://wikka.jsnx.com/ModRewrite/NewPage the system proposes me to create newpage instead of NewPage. I get this problem with a brand new 1.1.5.3 and rewrite_mode on. It disapears if I remove the rewrite mode. I have the same symptom by using the "' "" action. JavaWoman - as you also are using a windows/apache system could you please tell me if you have the same problem?
CategoryDocumentation CategoryDevelopment