obscure bug with a subdirectory install

Found a bug? Tell us!!
Post Reply
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

obscure bug with a subdirectory install

Post 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.)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: obscure bug with a subdirectory install

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply