show url and HTTP method in exception
[phorkie.git] / www / index.php
index 9a05add9b9741d78ce46a87345123577fe4821dc..5b5e4f64288e2b326d11a90908dcdcf1787d2544 100644 (file)
@@ -1,5 +1,13 @@
 <?php
+/**
+ * Jump to the index as per the configuration
+ */
 namespace phorkie;
+$reqWritePermissions = false;
 require_once 'www-header.php';
-require_once $GLOBALS['phorkie']['cfg']['index'].".php";
+
+header(
+    'Location: '
+    . Tools::fullUrl($GLOBALS['phorkie']['cfg']['index'])
+);
 ?>