Merge pull request #208 from jLukeC/fix/local-dev-clean-urls
fix base path to work locally with clean urls
This commit is contained in:
commit
536fe38e80
@ -90,7 +90,9 @@ if(isset($argv)){
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
require_once(dirname( __FILE__)."/libs/live.php");
|
require_once(dirname( __FILE__)."/libs/live.php");
|
||||||
$base_path = str_replace("/index.php", "", $_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']);
|
$server_base = $_SERVER['HTTP_HOST'];
|
||||||
|
if (!$options['clean_urls']) $server_base .= $_SERVER['PHP_SELF'];
|
||||||
|
$base_path = str_replace("/index.php", "", $server_base);
|
||||||
define("CLI", FALSE);
|
define("CLI", FALSE);
|
||||||
build_tree();
|
build_tree();
|
||||||
$remove = array($base_path . '/');
|
$remove = array($base_path . '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user