[pmwiki-users] clean urls problem

Derek Keller dkeller at uh.edu
Wed Sep 30 23:45:46 CDT 2009


maybe make sure permissions are correct for .htaccess and that  
allowoverride is properly specified for the directory in the second  
apache virtual host config.

On Sep 30, 2009, at 11:26 PM, adam overton wrote:

>
> 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
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users




More information about the pmwiki-users mailing list