[Pmwiki-users] Fwd: Problem setting CleanURLs for personal Pmwiki

slonik AZ slonik.az
Sat Dec 25 13:32:59 CST 2004


Patrick,
thank you very much! Your suggestion works! 
The key was to use the rewrite rules from your email

RewriteRule ^([A-Z].*) /~leor/pmwiki/pmwiki.php?n=$1 [L,qsappend]
RewriteRule ^$ /~leor/pmwiki/pmwiki.php [L,qsappend]

with an explicit reference to a user's web-dir  /~me/.
It would be great, if this recipe makes its way into the Pmwiki
documentation. Current "CleanUrls" entry in the Cookbok is of little
help if one keeps a PmWiki in a user specific public_html folder.

Lots of thanks again and happy holidays,
--Leo--


On Sat, 25 Dec 2004 08:33:46 -0700, Patrick R. Michaud
<pmichaud at pobox.com> wrote:
> On Fri, Dec 24, 2004 at 10:31:31AM -0500, slonik AZ wrote:
> > Hi Everybody,
> > I have serious problems configuring "CleanURLs" for my personal Pmwiki.
> > I am Running SUSE-9.1 Linux, Apache 2.0.49 with mod_rewrite loaded.
> > My personal wiki is located at /home/me/publix_hmtl/pmwiki and is being
> > addressed as http://localhost/~me/pmwiki/
> > Everything works fine except for my attempts to cleanup URLs.
> > I followed instructions in
> > http://www.pmwiki.org/wiki/Cookbook/CleanUrls, placed .htaccess file
> > in /home/me/public_html/pmwiki/ directory, modified config.php
> > accordingly, etc.
> 
> Can you send your .htaccess file?  Sometimes small typos in this file
> cause very odd results.
> 
> > Unfortunately, when I try http://localhost/~me/pmwiki/, my wiki is
> > unaccessible.
> > Browser displays error message "Object not found!" Error 404.
> > /var/log/apache2/error_log shows error line
> > [error] [client 127.0.0.1] File does not exist: /srv/www/htdocs/pmwiki
> 
> I'm going to guess that you've got
> 
>     RewriteEngine on
>     RewriteRule ^([A-Z].*) /pmwiki/pmwiki.php?n=$1 [L,qsappend]
>     RewriteRule ^$ /pmwiki/pmwiki.php [L,qsappend]
> 
> and it should probably be
> 
>     RewriteEngine on
>     RewriteRule ^([A-Z].*) /~me/pmwiki/pmwiki.php?n=$1 [L,qsappend]
>     RewriteRule ^$ /~me/pmwiki/pmwiki.php [L,qsappend]
> 
> The instructions on CleanUrls isn't clear about this -- if this solves
> your problem I'll fix the instructions.
> 
> Pm
>



More information about the pmwiki-users mailing list