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
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,

http://mail2web.com/ideas/mail2web-Live/Using-pop3

is actually

http://mail2web.com/ideas/node/9

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-pop3

Is my setup strange, or can others confirm this behaviour?

Thanks,
Nick
SoftCom Inc.
http://softcom.com

#1

nickhoffman - June 24, 2009 - 14:47

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

mercmobily - June 25, 2009 - 11:05

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

nickhoffman - June 25, 2009 - 13:33

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

mercmobily - June 25, 2009 - 15:49

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

nickhoffman - June 25, 2009 - 18:05

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

mercmobily - July 7, 2009 - 09:04
Status:active» fixed

#7

System Message - July 21, 2009 - 09:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.