Needs review
Project:
Path redirect
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2008 at 14:56 UTC
Updated:
29 Sep 2008 at 16:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
HorsePunchKid commentedI have tested extensively, but not on IIS, which it looks like you're using. There are differences between IIS and Apache in how they define certain CGI variables that Path Redirect needs, and this could very well be related.
This is probably the key:
If you could tell me what
request_uri()is returning there, as well as what$pathends up being, it might help. It's going to be very difficult for me to test in IIS, though.Comment #2
anonimicer commentedYes, I am using IIS. So here is some debug info that hopefully will help:
request_uri()=index.php?q=home
$path=/index.php?q=home
Thanks for your help!
Comment #3
HorsePunchKid commentedCould you try this patch? I was able to reproduce the problem: If you've got
/index.php?q=...in your URL rather than just/?q=..., the regex fails to match. I tested this patch minimally, and it appears to help, at least on Apache.If this does the trick, it probably needs to get backported to 5.x.
Comment #4
anonimicer commentedHey there
This seems to have made the trick, it is partially working. However, when the page to be redirected from is the home page, no redirect takes place, probably because the url does not contain "?q=home". Also, I was trying to redirect to the index.aspx file, but it always redirected to ?q=index.aspx, except when I put the complete http address. The problem is that I would like this to be domain independent.
Thanks for your help!
Comment #5
gregglesSlightly improved title.
Also, this seems like a feature to me.
Comment #6
isaac.niebeling commentedPatch worked for me in Drupal 5 --- Not sure about the implication of #4, though.
Isaac