[pmwiki-users] moving wiki up one level

dso dso at moosoft.com
Fri Jan 26 22:54:43 CST 2007


I moved my wiki from /www/pmwiki to /pmwiki

I did a .htaccess redirect /www http://www.blah.com

It all works almost right.  When someone enters
http://www.blah.com/Updates it ends up rewritten like so:
http://www.blah.com/Updates?n=Updates

It seems to be from the last RewriteRule.

here is my .htaccess

Redirect /www http://www.blah.com

RewriteEngine on

# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
# Define the rewrite base.  It's not necessarily PmWiki's directory.
RewriteBase /
# Send requests without parameters to pmwiki.php.
RewriteRule ^$           pmwiki.php  [L]
# Send requests for index.php to pmwiki.php.
RewriteRule ^index\.php$ pmwiki.php  [L]
# Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([^/a-z].*) pmwiki.php?n=$1  [QSA,L]

Daniel




More information about the pmwiki-users mailing list