Infinite redirects with Global Redirect
nickhoffman - June 24, 2009 - 14:35
| Project: | Drigg |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi guys. I'm curious to know if anyone else is experiencing the following behaviour.
I've got "fancy" URLs working for my scoops. In other words,
is actually
However, those "fancy" URLs result in an infinite redirect-loop when the Global Redirect module is enabled:
$ curl -I http://beta.mail2web.com/ideas/mail2web-Live/Using-pop3
HTTP/1.1 301 Moved Permanently
...
Location: http://beta.mail2web.com/ideas/mail2web-Live/Using-pop3Is my setup strange, or can others confirm this behaviour?
Thanks,
Nick
SoftCom Inc.
http://softcom.com

#1
Note: I'm using the following settings in the Global Redirect module:
Deslash: On
Non-clean to Clean: On
Remove Trailing Zero Argument: Disabled
Menu Access Checking: Enabled
Case Sensitive URL Checking: Enabled
#2
Hi,
With Drigg, because of the way it's structured, I advise people to use settings.php's redirections.
Now... by the looks of it, you are experiencing problems as settings.php's redirection is going against Global Redirect.
But mine is only an assumption -- I might well be wrong!
Merc.
#3
Hi Merc. I don't have any redirection settings in sites/default/settings.php . Could you give me an example of what you advise?
I'm trying to use the Global Redirect module so that URLs such as node/4 are automatically redirected to their alias, if one exists.
Thanks,
Nick
SoftCom, Inc.
http://softcom.com
#4
Hi,
All the information is in drigg-code.org -- please read the installation instructions carefully. It's all there...
In the documentation I explain very carefully why Drigg sites normally use settings.php to create aliases.
Merc.
#5
Hey Merc. I got it all sorted out. The problem was caused by Drigg's custom_url_rewrite_outbound() and custom_url_rewrite_inbound() in settings.php .
While those two functions are useful, they break functionality with other common Drupal modules, such as Global Redirect, and URL Alter.
I've written a post that describes an alternative solution for URL aliasing, and why it's more desirable than putting rewrite functions in settings.php .
I hope you'll read the post and let me know what you think. Cheers,
Nick
SoftCom, Inc.
http://softcom.com
#6
#7
Automatically closed -- issue fixed for 2 weeks with no activity.