[pmwiki-devel] Subtle FORM bug?
Henrik
henrik.bechmann at sympatico.ca
Thu Nov 23 01:19:18 CST 2006
I have implemented .htaccess processing to hide website subaccount
subdirectories from the public root, from the user, when using parked
domain names.
So macgregorpark.ca/macgregorpark/wiki/wiki.php
looks like macgregorpark.ca/wiki/wiki.php
to the user.
To support this I have set $ScriptUrl (in farmconfig.php) to:
$CustomHost=$_SERVER["HTTP_HOST"];
$ScriptUrl="http://$CustomHost/wiki/wiki.php";
This works fine in all contexts (so far), except for the FORM URL parameter
(:input form "{$ScriptUrl}/{$FullName}" GET:)
which results in
http://macgregorpark.ca/wiki/wiki.php/Site.SiteMap?...
and an error message of "No input file specified." (the same thing works
fine without the config $ScriptUrl assignment, ie
http://macgregorpark.ca/macgregorpark/wiki/wiki.php/Site.SiteMap?... works).
(:input form "{$ScriptUrl}?={$FullName}" GET:) and similar attempts
don't seem to parse in this context.
To fix this, I have had to intercept "wiki.php/" and change it to
wiki.php?n= in the .htaccess file like this.
RewriteRule ^(.*/wiki.php)(/)(.*)$ http://%{HTTP_HOST}/$1?n=$3 [QSA,R,L]
- Henrik
--
Henrik Bechmann
www.osscommons.ca
www.bechmannsoftware.com
Webmaster, www.dufferinpark.ca
More information about the pmwiki-devel
mailing list