obscure bug with a subdirectory install
Posted: Mon Apr 03, 2006 5:39 am
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.)
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.)