Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Broken Search With Lighttpd - inc. Fix
 
magnoob
Jr. Member
 
Total Posts:  8
Joined:  2008-09-14
 

Hi,

There is a problem using Lighttpd and Magetno and enabling web server rewrites, whereby the search form and grid/list view doesn’t work. The problem is due to lighttpd’s server.error-handler-404 and it not passing GET arguments. See here for more details

To fix it, I used this guys code for typepad and put it at the top of index.php… I realise this is probably not the best place for the chunk of code but it works. If you could add this to the next release that would be great smile

function asy_fix_querystring() {
if (!strstr($_SERVER['REQUEST_URI'],'?') or !empty($_GET))  return;
$_SERVER['QUERY_STRING'preg_replace('#^.*?\?#','',$_SERVER['REQUEST_URI']);
parse_str($_SERVER['QUERY_STRING']$_GET);
}

asy_fix_querystring
();

Thanks
Magnoob

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top