Add htaccess
This commit is contained in:
@@ -16,7 +16,7 @@ include './custom/settings/config.php';
|
||||
// Include functions and connect to the database using PDO MySQL
|
||||
include 'functions.php';
|
||||
// Include translation file
|
||||
include './custom/translations/translations/translations_'.strtoupper(language_code).'.php';
|
||||
include './custom/translations/translations_'.strtoupper(language_code).'.php';
|
||||
// Connect to MySQL database
|
||||
$pdo = pdo_connect_mysql();
|
||||
// Output error variable
|
||||
@@ -65,7 +65,8 @@ $url = routes([
|
||||
'/faq'=> '/custom/pages/faq.php',
|
||||
'/privacy'=> '/custom/pages/privacy.php',
|
||||
'/privacy/{download}'=> '/custom/pages/privacy.php',
|
||||
'/instructions-for-use' => '/custom/pages/faq.php'
|
||||
'/instructions-for-use' => '/custom/pages/faq.php',
|
||||
'/test' => 'test.php'
|
||||
]);
|
||||
// Check if route exists
|
||||
if ($url) {
|
||||
|
||||
Reference in New Issue
Block a user