i can not seem to find the location to set enable the custom_url_rewrite_outbound()
in settings.php. I thought that perhaps I would just uncomment a line... but no luck. I did find a snippet of code at: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/subdomain/R...

am i suppose to cut and paste this code in the file?
thanks

Comments

setvik’s picture

Refer to Step 2: in the readme.txt file included with the download.

You need to patch settings.php with the patch located at patches/settings.php.patch

If you've heavily customized your settings.php already, the patch may not apply, so you can simple append the relevant code from the patch to your settings.php file. Including the code below for your convenience:

function custom_url_rewrite_outbound(&$path, &$options, $original_path) {

  if (module_exists('subdomain')) {
    subdomain_url_rewrite($path, $options);
  }

}

Let me know if that works for you.

Stein

setvik’s picture

Status: Active » Postponed (maintainer needs more info)
setvik’s picture

Status: Postponed (maintainer needs more info) » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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