[Pmwiki-users] ReWrite Rule breaks Uploads?

Dave Noonan PmWiki
Thu Mar 11 15:50:35 CST 2004


Make sure these two are set:

$UploadDir = "/home/awfki/www/wiki/uploads";
$UploadUrlFmt = "http://wiki.ThunderBunny.org/uploads";


Roy wrote:
> Thanks for the help. The images still don't seem to link correctly  (my 
> directory being in /public/wiki and it keeps "forgetting" the /public 
> part of the URL.
> 
> Roy
> 
> At 01:06 PM 3/6/2004 -0500, J. Perkins wrote:
> 
>> I use:
>>
>> RewriteEngine on
>> RewriteRule ^([A-Z].*) /public/wiki/pmwiki.php/$1 [L]
>>
>> Then in config.php, I think you need (I'm guessing at your document 
>> root):
>>
>> $PageUrlFmt = '/wiki/$Group/$Title_';
>>
>> Don't change $ScriptUrl. The original instructions said you should, 
>> but that was what broke uploads for me. Leave $ScriptUrl at the 
>> default and change $PageUrlFmt instead.
>>
>> I don't know if that helps you any, but it is working for me. I had t
>>
>> Jason
>>
>>
>> Roy wrote:
>>
>>> I seem to recall someone else having this issue. I was doing the 
>>> tricks, to make "Pretty URLS". Here's my .htaccess file...
>>> [snip]
>>> DirectoryIndex pmwiki.php
>>> RewriteEngine on
>>> RewriteBase /
>>> RewriteRule ^([A-Z].*) 
>>> /public/wiki/pmwiki.php?pagename=$1&%{QUERY_STRING} [L]
>>> [end snip]
>>> Everything works great, except you can't upload files (for Attach 
>>> tags). I put the directory into 777 mode, but still no-go.
>>> Can I assume the upload path is getting confused?
>>> Roy
>>
>>
> 
> 






More information about the pmwiki-users mailing list