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.

Comments

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

I 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.

boris mann’s picture

Assigned: Unassigned » boris mann

I'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.

sylv3st3r’s picture

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

stephthegeek’s picture

Assigned: boris mann » Unassigned
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new42.31 KB

I'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.

dave reid’s picture

I still can't replicate this. :/

sylv3st3r’s picture

I 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

dave reid’s picture

Status: Active » Postponed (maintainer needs more info)

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

stephthegeek’s picture

Status: Postponed (maintainer needs more info) » Active

I'm on Apache. Also tried upgrading to Drupal beta2.

stephthegeek’s picture

Also have tried this on a local environment plus another site hosted on WebEnabled and same issue.

sylv3st3r’s picture

Apache 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)) {

stephthegeek’s picture

Tried making these changes and uninstalling/re-enabling the module but still no luck for me.

ezra-g’s picture

Status: Active » Needs review
StatusFileSize
new1.48 KB

These 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 ;).

Status: Needs review » Needs work

The last submitted patch, 944120.patch, failed testing.

dave reid’s picture

Assigned: Unassigned » 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.

dave reid’s picture

Status: Needs work » Fixed

My 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

Status: Fixed » Closed (fixed)

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