Skip to content

Instantly share code, notes, and snippets.

@michaelxor
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelxor/11180514 to your computer and use it in GitHub Desktop.
Save michaelxor/11180514 to your computer and use it in GitHub Desktop.
domain map
<?php
$domain_map = array(
'omg-facts.com' => 'omgfacts.com',
'sex.omg-facts.com' => 'sex.omgfacts.com',
);
if (array_key_exists($config['site_name'], $domain_map)) {
$config['site_name'] = $domain_map[$config['site_name']];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment