Skip to content

Instantly share code, notes, and snippets.

@pablo-sg-pacheco
Created June 20, 2016 18:27
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 pablo-sg-pacheco/ae433176f47644dd462fcc4833e90ae4 to your computer and use it in GitHub Desktop.
Save pablo-sg-pacheco/ae433176f47644dd462fcc4833e90ae4 to your computer and use it in GitHub Desktop.
(Wp-config) - Site relativo
<?php
$protocol = 'http://';
$http_host = $_SERVER['HTTP_HOST'];
$siteFolder = 'cool-magazine';
define('WP_HOME', $protocol.$http_host.'/'.$siteFolder);
define('WP_SITEURL', $protocol.$http_host.'/'.$siteFolder);
define('WP_CONTENT_URL', $protocol.$http_host.'/'.$siteFolder.'/wp-content');
define('DOMAIN_CURRENT_SITE', $http_host);
define('WP_DEBUG', true); // or false
if (WP_DEBUG) {
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
@ini_set('display_errors',0);
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment