Closed (fixed)
Project:
Redirect
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
17 Oct 2010 at 15:08 UTC
Updated:
20 Nov 2010 at 17:10 UTC
Jump to comment: Most recent file
You can see in the attached screen shot that I have a non-existent, from the old website URL. Then I have added the internal path it should redirect to. Going to the non-existent "old" URL just shows a 404 and doesn't redirect.
However, this is on nginx with lots of caching, so if you can't replicate, then it's a nginx / caching issue of some kind.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | 944120.patch | 1.48 KB | ezra-g |
| #4 | Redirect configuration | 42.31 KB | stephthegeek |
| Screen shot 2010-10-17 at 8.05.24 AM.png | 28.37 KB | boris mann |
Comments
Comment #1
dave reidI just tried creating a redirect with the current code:
From: 'news-release-archives'
To: 'news/archive'
And I was redirected on http://localhost/news-release-archives just fine, so I'm not sure what's up.
Comment #2
boris mann commentedI'm on the last alpha, so looks like I need to move to beta. I will assign to myself until I can verify. Definitely doesn't work on the alpha.
Comment #3
sylv3st3r commentedDave, sorry for not responding on the last thread. This is what happen to me too. And because I don't have any to verify. I can't respond. It's doesn't work on me too. I don't know what caused it. The thing I noticed is, when calling drupal_get_normal_path. It's not returning the path, but redirecting.
I'm moving to beta1 right now. Will inform more.
Comment #4
stephthegeek commentedI'm testing with the D7 beta1 and alpha1 of Redirect, and also cannot get redirects working at all. Neither an internal nor external redirect seem to be having any effect, and visiting the path will either result in a 404 if it doesn't already exist, or simply not redirect if it's an existing page. Nothing in reports. Screenshot of current settings attached.
Comment #5
dave reidI still can't replicate this. :/
Comment #6
sylv3st3r commentedI think we should also list any custom modules we have. As for me. I have just too many. Since I used it on production site. Will test on clean drupal installation
Comment #7
dave reidWait, I missed an important detail that the original report said the server is running nginx rather than apache. Can anyone else confirm which server they're using?
Comment #8
stephthegeek commentedI'm on Apache. Also tried upgrading to Drupal beta2.
Comment #9
stephthegeek commentedAlso have tried this on a local environment plus another site hosted on WebEnabled and same issue.
Comment #10
sylv3st3r commentedApache server. Tried it on beta2. Still the same. I have 1 thing on list
node/1 redirected to front page
Accessed node/1 and no redirection happens.
Tried on localhost and live
I also noticed that on settings (admin/config/search/redirect/settings)
That this "Redirect from non-canonical URLs to the canonical URLs. " and "Retain query string through redirect.". Settings is not saved.
To fix it : on redirect.admin.inc
Search for : $form['globals']['redirect_global_canonical']
Change '#default_value' => variable_get('redirect_canonical', 1),
To '#default_value' => variable_get('redirect_global_canonical', 1),
Search for : $form['redirect_passthrough_querystring']
Change : '#default_value' => variable_get('redirect_querystring', 0),
To : '#default_value' => variable_get('redirect_passthrough_querystring', 0),
Also need to change redirect.module
From :
// Redirect to canonical URLs.
if ($path && variable_get('redirect_canonical', TRUE)) {
To :
// Redirect to canonical URLs.
if ($path && variable_get('redirect_global_canonical', TRUE)) {
Comment #11
stephthegeek commentedTried making these changes and uninstalling/re-enabling the module but still no luck for me.
Comment #12
ezra-g commentedThese changes resolved the complete lack of redirection on internal paths for me. Seems like the "do the redirect" code should probably not be commented out ;).
Comment #14
dave reid/me pouts. But why would you want to do redirects with the Redirect module? That just doesn't make sense!
Arg, I'm on it.
Comment #15
dave reidMy sincerest apologies about this bug since I had already fixed it locally but not actually committed it. This should be fixed now.
http://drupal.org/cvs?commit=447276