<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hello all,<br>
<br>
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?<br>
<br>
Thanks!<br>
Mike<br>
<br>
<br>
That's what I used:<br>
</font></font>
<h3><a id="dir_above" name="dir_above"></a>Example Two: <em>.htaccess</em>
in the Directory Above the Wiki's Directory</h3>
<pre class="escaped">Before: <a class="moz-txt-link-freetext" href="http://www.example.com/~someuser/pmwiki/pmwiki.php?n=Main.HomePage">http://www.example.com/~someuser/pmwiki/pmwiki.php?n=Main.HomePage</a>
After: <a class="moz-txt-link-freetext" href="http://www.example.com/~someuser/Main/HomePage">http://www.example.com/~someuser/Main/HomePage</a></pre>
<p class="vspace">Here's the <em>.htaccess</em> file. In this example
it goes in the directory <em>above</em> the one that contains <em>pmwiki.php</em>.
</p>
<div class="indent"
style="padding: 3px; background-color: rgb(247, 247, 247);">
<pre class="escaped"
style="padding: 3px; background-color: rgb(247, 247, 247);"># 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]</pre>
</div>
<br>
</body>
</html>