Tried both version 6.x-1.2 and the latest dev. Same problem both times. Lag is so heavy and starts so quickly that the module page never even gets a chance to refresh. The site instantly locks up and all pages become unavailable. The site does not use any multilingual/translation modules and it does not use i18n. It does not use pathauto. However I do have a custom module that writes paths dynamically (similar to pathauto more lightweight, and only for certain content types). Since the server load does not increase dramatically when lockup occurs, I am not looking at a db bottleneck. Therefore I suspect an infinite loop. Wish I had more to report, but for now - if you use any modules that rewrite paths, there is a chance GR may not work for you.

Comments

As If’s picture

For anyone with this problem, I thought I would offer the alternative solution I came up with. It bites off a lot less than GR, but it will get the 301 job done. That's the important feature as far as I'm concerned. So here's what you do:

STEP 1: In template.php:

function mytheme_preprocess_page(&$variables, $hook) {
  $variables['permananent_redirect'] = '';
  if($hook == 'page') {
    if($_SERVER['REQUEST_URI'] == '/node/' . arg(1) OR $_SERVER['REQUEST_URI'] == '/taxonomy/term/' . arg(2)) {
      $variables['permananent_redirect'] = 'http://www.mydomain.com/' . drupal_get_path_alias($_GET['q']);
    }
  }
}

Note that you must replace "mytheme" with the actual name of your theme, and replace "mydomain.com" with your actual domain name. This handles all "taxonomy/term/#" paths and "node/#" paths. Feel free to add more, as your site structure requires.

STEP 2: In page.tpl.php:

<?php
if($permananent_redirect) {
  Header( "HTTP/1.1 301 Moved Permanently" ); 
  Header( "Location: " . $permananent_redirect); 
}
?>

This should be inserted as close as possible just after the opening HEAD tag.

As If’s picture

Title: GR makes site unavailable. Suspect infinite loop. » GR makes site unavailable. Suspect infinite loop. Workaround/Hack.

Updating title just to be anal.

Ela’s picture

thanks! going to try it :)