mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-20 01:09:35 +05:30
(refactor): changed router file path (feat): added global host config
This commit is contained in:
10
htdocs/core/host_config.php
Normal file
10
htdocs/core/host_config.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
$currentHost = $_SERVER['HTTP_HOST'];
|
||||
|
||||
if($currentHost == "localhost") {
|
||||
$basePath = "https://localhost/neosubhamoy/htdocs";
|
||||
}
|
||||
else {
|
||||
$basePath = "https://" + $host;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user