[pmwiki-users] .htaccess file
DaveG
pmwiki at solidgone.com
Mon Dec 28 18:28:29 CST 2009
On 12/28/2009 5:59 PM, Wade Hudson wrote:
> My current homepage is http://charternetwork.org/public_html/pmwiki.php
> I want it to be http://charternetwork.org
>
> The default .htaccess file is in public_html/local.
> It reads:
> Order Deny,Allow
> Deny from all
>
> Following Example 3 at
> http://www.pmwiki.org/wiki/Cookbook/CleanUrls#examples, I'm using the
> following for my .htaccess file.
>
> # Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
> RewriteEngine On
> # The rewrite base will be the document root.
> RewriteBase /
> # Send requests without parameters to pmwiki.php.
> RewriteRule ^$ ~someuser/pmwiki/pmwiki.php [L]
> # Send requests for index.php to pmwiki.php.
> RewriteRule ^index\.php$ ~someuser/pmwiki/pmwiki.php [L]
> # Send requests to pmwiki.php, appending the query string part.
> RewriteRule ^([A-Z0-9\xa0-\xff].*)$ ~someuser/pmwiki/pmwiki.php?n=$1
> [QSA,L]
>
> But after I change my confif.php accordingly, leave the default
> .htaccess file untouched, and place this file in my root directory, it
> does not work. What am I doing wrong?
Assuming:
1] you are putting the .htaccess file in public_html,
2] You seem to have installed pmwiki in public_html (not in a
sub-directory)
then you need to change the path (on three lines) in the .htaccess file
from:
~someuser/pmwiki/
to:
pmwiki.php
Personally, I'd recommend putting pmwiki inside it's own sub-directory
off public_html. In which case you'd need to alter the paths to include
the sub-directory name.
~ ~ Dave
More information about the pmwiki-users
mailing list