[pmwiki-users] .htaccess file
wade at wadehudson.net
Mon Dec 28 18:52:01 CST 2009
Thanks. We seem to be closer.
my config.php reads:
$EnablePathInfo = 1;
$ScriptUrl = "http://charternetwork.org";
I edit my .htaccess file in Notepad, save it as a text file, delete .txt
from the file name, and upload it to /public_html/local
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
# The rewrite base will be the document root.
# 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]
When from http://charternetwork.org/public_html/pmwiki.php I click on my
logo link in the upper left corner, I go to http://charternetwork.org/,
but it is another doc that my associate created at the outset, not my
> 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
>> 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?
> 1] you are putting the .htaccess file in public_html,
> 2] You seem to have installed pmwiki in public_html (not in a
> then you need to change the path (on three lines) in the .htaccess
> file from:
> 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