Skip to content

Instantly share code, notes, and snippets.

@bhowe
Created March 7, 2021 21:03
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 bhowe/f83743d20bf268650e9ec9ac04996dce to your computer and use it in GitHub Desktop.
Save bhowe/f83743d20bf268650e9ec9ac04996dce to your computer and use it in GitHub Desktop.
-> go to all sites > Add new site
-> After adding go to all All sites again and edit the newly added site.. change it's url to https://dev.test.com/
-> After that you have to go to all domains in cpanel.
-> Change the directory path of https://dev.test.com/ to public_html
-> Next.. go to wp-config.php in public_html
Change
define('DOMAIN_CURRENT_SITE', 'dev.whatever.com');
to
define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST'] );
user nscloner if you want to copy the current site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment