[Pmwiki-users] Mod_rewrite tip
Tue Mar 2 17:22:52 CST 2004
I spent the afternoon setting up pmwiki and mod_rewrite, and I think
I've got it working. There have been some posts recently from other
people so I thought I'd share what I found out (I've also add some
comments to the wiki page at
.htaccess should look like this:
RewriteRule ^([A-Z].*) /path/to/pmwiki.php/$1 [L]
You need the leading "^" to only match leading uppercase letters.
Also, you don't want to change the $ScriptUrl variable, because it will
screw up all kinds of things, like the upload and mailform scripts.
Instead, change $PageUrlFmt, which controls how links to other wiki
pages look. Keep it simple:
$PageUrlFmt = '$Group/$Title_';
Hope this helps someone. You can see it in action at
Thanks for a great bit of software Pm.
More information about the pmwiki-users