Page 1 of 1

obscure bug with a subdirectory install

Posted: Mon Apr 03, 2006 5:39 am
by mgroeninger
While troubleshooting davecjr's problem with the usergallery plugin I found that a subdirectory install, when using "Apache errorhandling" for url rewriting, does not allow permalinks to pass variables (as far as I can tell, variables don't get loaded into $_GET or $_REQUEST).

That is, when trying this url:
http://webserver/blog/pages/gallery.htm ... ry=&page=2

$_GET['page'] and $_REQUEST['page'] are empty... but only when using "Apache errorhandling" to rewrite the url.

If mod_rewrite is used it is fine, and if the blog is in the root directory (as in http://webserver/pages/gallery.html?gallery=&page=2) it is fine.

I replicated the problem on Serendipity 1.1-alpha1. Since I'm not familiar with the errorhandling based rewrite method, I'm unsure of where to _even_ look to troubleshoot further. (Our solution was to use mod_rewrite, since it was available.)

Re: obscure bug with a subdirectory install

Posted: Mon Apr 03, 2006 10:43 am
by garvinhicking
Hi!

Yes, I have faced that exact issue as well. The only workaround is to use the index.php?serendipity[subpage]... method to post GET/POST variables to an URL with GET strings.

The core mechanism of s9y already uses that, like when posting a comment to a page...

HTH,
Garvin