[pmwiki-users] clean urls problem
adam overton
a at plus1plus1plus.org
Wed Sep 30 23:26:50 CDT 2009
hi there
i've been starting a 2nd separate wiki (i.e not a farm) on my server
with slightly different settings than the first, and am having major
problems with Clean Urls. i've looked around on pmwiki.org and on the
mailing lists, and haven't yet found what i need.
for my original wiki, let's call it http://firstWiki.com
it's actually stored in http://myserver.com/pmwiki (with domain
forwarding to /pmwiki).
it works fine, and easily resolves pagenames like http://
firstWiki.com/Group/Page
i have an .htaccess file in /pmwiki that has the usual cleanurl
suggestions:
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# Define the rewrite base.
RewriteBase /pmwiki
# 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-Z0-9\xa0-\xff].*)$ pmwiki.php?n=$1 [QSA,L]
my 2nd wiki, however, is being stored at http://myserver.com/wiki
(note the different folder name /wiki), and can be accessed via
http://myserver.com/wiki.
at this point i can only access my pages if i use:
http://myserver.com/wiki/pmwiki.php?n=Group.Page
or
http://myserver.com/wiki/index.php/Group/Page
what i'd like to have is http://myserver.com/wiki/Group/Page, but
it's not working. i'm using the exact same .htaccess code as above,
but with RewriteBase /wiki instead.
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On
# Define the rewrite base.
RewriteBase /wiki
# 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-Z0-9\xa0-\xff].*)$ pmwiki.php?n=$1 [QSA,L]
and in config.php, i've got:
$EnablePathInfo = 1;
$ScriptUrl = "http://myserver.com/wiki";
anyone have any ideas why this is not working for me?
thanks a bunch.
adam
More information about the pmwiki-users
mailing list