Skip to content

Instantly share code, notes, and snippets.

@evandonovan
Created May 18, 2010 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save evandonovan/404559 to your computer and use it in GitHub Desktop.
Save evandonovan/404559 to your computer and use it in GitHub Desktop.
url_outbound_alter set absolute domain
<?php
/**
* Implements hook_url_outbound_alter() - from URL Alter module
*/
function YOURMODULE_url_outbound_alter(&$path, &$options, $original_path) {
// Rewrite paths for rices4peru.com
if ($_SERVER['HTTP_HOST'] == "www.rices4peru.com") {
$options['absolute'] = TRUE;
$options['base_url'] = 'http://www.drupal.rices2peru.com';
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment