[pmwiki-users] CleanUrls
Patrick R. Michaud
pmichaud at pobox.com
Wed Sep 27 15:02:31 CDT 2006
On Wed, Sep 27, 2006 at 09:27:42PM +0200, Mike wrote:
> Hello all,
>
> one question on the CleanUrls recipe: I set it up using the Apache
> RewriteRules as shown so that my pmwiki appears to be executed from the
> server root. Unfortunately, I have a folder in the root called "_admin"
> which I need to be able to access in spite of the PmWiki RewriteRules.
> Could somebody kindly tell me how to adapt the RewriteRules so that this
> folder "_admin" gets excluded from the following rules?
> [...]
>
> # Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
> RewriteEngine On
> # Define the rewrite base. It's not necessarily PmWiki's directory.
> RewriteBase /~someuser
> # Send requests without parameters to pmwiki.php.
> RewriteRule ^$ pmwiki/pmwiki.php [L]
> # Send requests for index.php to pmwiki.php.
> RewriteRule ^index\.php$ pmwiki/pmwiki.php [L]
> # Send requests to pmwiki.php, appending the query string part.
> RewriteRule ^([^/a-z].*) pmwiki/pmwiki.php?n=$1 [QSA,L]
Change the last RewriteRule to read:
RewriteRule ^([^/a-z_].*) pmwiki/pmwiki.php?n=$1 [QSA,L]
Pm
More information about the pmwiki-users
mailing list