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

BIN
.DS_Store vendored

Binary file not shown.

11
.htaccess Normal file
View File

@@ -0,0 +1,11 @@
Options -MultiViews
Options -Indexes
RewriteEngine On
# Uncomment the below if the code is not on the root level
# RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA,L]

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

View File

@@ -3,7 +3,7 @@
define('interface', true);
// Include the configuration file, this contains settings you can change.
include 'config.php';
include '/custom/settings/config.php';
// Include functions and connect to the database using PDO MySQL
include 'functions.php';
// Connect to MySQL database

View File

@@ -1,6 +1,6 @@
<?php
// Include the configuration file, this contains settings you can change.
include 'config.php';
include '/custom/settings/config.php';
// Include functions and connect to the database using PDO MySQL
include 'functions.php';
// Connect to MySQL database