[pmwiki-users] clean urls for wiki farms?
Jan Erik Moström
lists at mostrom.pp.se
Sat Jan 26 14:33:42 CST 2008
I'm missing something (as usual). I've set up a wiki farm and
I'm now trying to configure it to use clean urls. The original
site works just fine but when I try to add clean urls to one of
"farm wikis" I run into some problems.
I get a url that look like this:
<http://www.example.com/info/index.php/Main/HomePage>
If I've understood
<http://www.pmwiki.org/wiki/Cookbook/CleanUrls#farms> correctly
I should change pmwiki.php to index.php in my .htaccess file
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# Define the rewrite base.
RewriteBase /info
# Send requests without parameters to pmwiki.php.
RewriteRule ^$ index.php [L]
# Send requests for index.php to pmwiki.php.
RewriteRule ^index\.php$ index.php [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([A-Z0-9\xa0-\xff].*)$ index.php?n=$1 [QSA,L]
But apparently it doesn't work. How can I remove the 'index.php'
part also?
jem
--
Jan Erik Moström, www.mostrom.pp.se
More information about the pmwiki-users
mailing list