Skip to content

Instantly share code, notes, and snippets.

@findzen
Created November 11, 2011 18:00
Show Gist options
  • Save findzen/1358706 to your computer and use it in GitHub Desktop.
Save findzen/1358706 to your computer and use it in GitHub Desktop.
base href
<?php
define('BASE_HREF', '//' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/');
?>
<base href="<?=BASE_HREF?>" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment