? 253612-subdomain_redirect.patch Index: path_redirect.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/path_redirect/path_redirect.module,v retrieving revision 1.3.2.7.2.49 diff -u -p -r1.3.2.7.2.49 path_redirect.module --- path_redirect.module 27 Jun 2009 21:57:20 -0000 1.3.2.7.2.49 +++ path_redirect.module 23 Oct 2009 20:49:51 -0000 @@ -164,7 +164,8 @@ function _path_redirect_check() { $path = drupal_substr($path, drupal_strlen(base_path())); // Remove ($language->language .'/') via preg_replace? $path = _path_redirect_split_path($path); - $where[] = "(path = '%s' OR path = '%s')"; + $where[] = "(path = '%s' OR path = '%s' OR path = '%s')"; + $args[':page'] = ($_SERVER["HTTPS"]?'https://':'http://').$_SERVER["SERVER_NAME"]; $args[':path'] = $_GET['q']; $args[':path_query'] = $_GET['q'] .'?'. $path['query']; $sort[] = 'path DESC'; @@ -173,7 +174,8 @@ function _path_redirect_check() { //$sort[] = 'path_query DESC'; } else { - $where[] = "path = '%s'"; + $where[] = "(path = '%s' OR path = '%s')"; + $args[':page'] = ($_SERVER["HTTPS"]?'https://':'http://').$_SERVER["SERVER_NAME"]; $args[':path'] = $_GET['q']; //$where[] = "path_query = ''"; }