I have custom error installed on my Drupal 6.12 site. The custom 404 page is working great, I have some PHP code in there to redirect to the correct page based on language.

I just tried to add a redirect, but it doesn't seem to be working. For example, I tried putting in;

muffin <front>

But when I go to mysite.com/muffin it just gives me the 404 page.

Status

It was a bug. It is fixed in release 6.x-1.3.

Comments

seworthi’s picture

I had the same issue. First you need to put 2 links per line (old-link new-link), seperated by a space. I also found the module is coded to return w/o redirecting if you had less than 2 redirects in the list.

You can change line 225 of customerror.module from

if (count($list) <= 1) {

to

if (count($list) < 1) {

Scott

HS’s picture

Priority: Normal » Major
I also found the module is coded to return w/o redirecting if you had less than 2 redirects in the list.

Yeah. This is one of the primary reasons why there are people seeking help in the issue queue on getting redirects to work. It wont work unless you have two or more redirects.

gisle’s picture

Title: Can't get redirects to work » Single redirect does not work
Version: 6.x-1.1 » 6.x-1.2
Category: support » bug
Priority: Major » Normal
StatusFileSize
new703 bytes

Just found that this really is a bug and it is in 6.x-1.2 as well (it is fixed in 7.x-1.0).

I've attached a patch. Please test. If it passes, it will be included in the next release.

gisle’s picture

Assigned: Unassigned » gisle
Status: Active » Needs review

Changing status.

gisle’s picture

Version: 6.x-1.2 » 6.x-1.3
Issue summary: View changes
Status: Needs review » Fixed

Fixed in release 6.x-1.3.

Status: Fixed » Closed (fixed)

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