[pmwiki-users] CleanUrls/mod_rewrite in subwiki's

DaveG pmwiki at solidgone.com
Sat Feb 6 11:05:13 CST 2010

On 2/3/2010 10:10 AM, Dawa Ometto wrote:
> Hi all,
> I'm trying to apply the cleanurl's recipe (mod_rewrite/.htaccess) on a
> test pmwiki environment. The URL-rewriting in itself is working
> allright, so I have e.g.:
> http://mysite.com/Main/HomePage
> ...for the top-level installation, and:
> http://mysite.com/wiki/test/Main/HomePage
> ...for a second (sub)wiki running on the farm. All this is nice, but
> whenever I click a link or reload a page in the second wiki I have to
> reauthenticate (authuser/ldap). This doesn't occur in the top-level
> wiki. The .htaccess I have in /wiki/test/.htaccess looks like this:
> RewriteEngine On
> RewriteBase /wiki/test/    # The 'test' subwiki is in
> <documentroot>/wiki/test
> # Send requests without parameters to index.php.
> RewriteRule ^$          index.php  [L]
> # Send requests for index.php to index.php.
> RewriteRule ^index.php$ index.php  [L]
> # Send requests to index.php, appending the query string part.
> RewriteRule ^([A-Z0-9?-?].*)$ index.php?n=$1  [QSA,L]
> It looks like the authentication cookie somehow isn't sticking because
> of the rewriting. Has anyone ever encountered this problem? Any
> suggestions for a solution or debugging?
You might be having issues with sessions. Try explicitly declaring the 
session location:

  ~ ~ Dave

More information about the pmwiki-users mailing list