This is the HTML base tag I use on my sites.
<base href="//<?php echo $_SERVER['SERVER_NAME']; ?>/">
If I move the site to another domain or is testing it locally, I won’t need to change every single page.
This is the HTML base tag I use on my sites.
<base href="//<?php echo $_SERVER['SERVER_NAME']; ?>/">
If I move the site to another domain or is testing it locally, I won’t need to change every single page.