Firefox+Lighttpd frontpage redirect error
isaacsm - August 28, 2007 - 16:14
| Project: | Global Redirect |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Frontpage redirection does not work properly under the Lighttpd web server when accessing the site using Firefox (2.0.0.6, Linux). It appears that GlobalRedirect is trying to redirect to the base URL without a trailing slash. Firefox, however, automatically appends a trailing slash to all base URLs, resulting in an infinite loop and no page display (eventually Firefox generates an error).
If the following code is commented out the front page will display, ableit without the nifty redirection.
// If current path is also the frontpage, redirect to http://www.mysite.com.
if(drupal_is_front_page()) {
drupal_goto('', $query_string, NULL, 301);
}

#1
I'll look into this... Maybe the drupal_goto needs a slash on it... But I dont think it should.
Have you tried DRUPAL-5 version (rather than DRUPAL-5--1-1)?
#2
I'm running Lighttpd on my blog (ThingyMaJig) and I dont have this problem... Marking as fixed for now (I'm using DRUPAL-5 rather than DRUPAL-5--1-1) as there has been no reply in nearly a year.
#3
Automatically closed -- issue fixed for two weeks with no activity.