Add htaccess

This commit is contained in:
“VeLiTi”
2025-01-30 15:15:23 +01:00
parent 390a6e9f4f
commit 68a16e5419
5 changed files with 16 additions and 4 deletions

View File

@@ -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) {