[pmwiki-users] 404 errors when following action link

David Annett david at annett.co.nz
Sat Nov 22 01:22:53 PST 2025


I have made progress, the query parts have the wrong separator.  On the 
page:
http://example.com/wiki/pmwiki.php?n=Site.APage
the edit URL provided is:
http://example.com/wiki/pmwiki.php?n=Site.APage?action=edit
when it should be:
http://example.com/wiki/pmwiki.php?n=Site.APage&action=edit

Not sure if this is PMWiki issue or a Lighttpd issue but I am guessing 
this is something I can configure Lighttpd to deal with, but it would be 
better if the rendered page had the correct URL.

On 22/11/25 21:50, David Annett wrote:
> I had $ScriptUrl commented out.  Setting didn't help.  I don't have 
> CleanURLs or $EnablePathInfo defined that I can see.
>
> However .htaccess is a good clue as I have used Lighttpd in the RPI 5, 
> instead of Apache I have used on the x64 implementation. I'm going to 
> look into that.
>
>
> On 22/11/25 17:40, Petko Yotov wrote:
>> There looks like a problem with the $ScriptUrl variable.
>>
>> It should point to the browser-reachable URL of your index.php or 
>> pmwiki.php file, for example:
>>
>> $ScriptUrl = 'https://www.example.com/wiki/index.php';
>> $ScriptUrl = 'http://192.168.1.55/wiki/index.php';
>>
>> Or a path without the domain name or IP address:
>> $ScriptUrl = '/wiki/index.php';
>>
>> Normally PmWiki should autodetect this and you wouldn't need to 
>> define it. I'd check if your local/config.php has a value that is 
>> wrong, or points to the old server URL.
>>
>> If you were using CleanURLs or $EnablePathInfo - see Cookbook - there 
>> may be additional configuration on the server to direct such requests 
>> to PmWiki. For Apache servers it is often a .htaccess file, and it 
>> may be a "hidden" file, in a file manager you may need to enable 
>> "Show hidden files" to see it. Check if you need to migrate this file 
>> too.
>>
>> Petko
>

-- 
ACCL_Sig
David Annett
Annett Computer Company

Email: 	david at annett.co.nz
Website: 	www.annett.co.nz <http://www.annett.co.nz>
NZ mobile: 	+64 21 436 707
USA mobile: 	+1 650 772 1412
NZ address: 	90 Muhunoa West Rd, Ohau, Manawatu 5570, New Zealand
NZ shipping address: 	2/6 Parker Ave, Levin 5510, New Zealand
Signal: 	+64 21 436 707
WeChat: 	DavidAnnett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20251122/59f661a1/attachment.html>


More information about the pmwiki-users mailing list