From 0696305accc1ebc16b3a7d43a9ad5c1899e3e9bb Mon Sep 17 00:00:00 2001
From: yrc1g20 <yrc1g20@soton.ac.uk>
Date: Sat, 14 Jan 2023 09:16:57 +0000
Subject: [PATCH] Upload New File

---
 .htaccess | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 .htaccess

diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..ffc14ea
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,24 @@
+# Enable rewrite engine and route requests to framework
+RewriteEngine On
+
+RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
+RewriteRule ^(.*)$ - [E=BASE:%1]
+
+RewriteCond %{REQUEST_URI} \.ini$
+RewriteRule \.ini$ - [R=404]
+<FilesMatch "\.(ini|cfg|csv|bak|swp|swo|log|sql|sh|json|gitignore)$">
+    RewriteRule .* - [R=404,L]
+</FilesMatch>
+
+RewriteCond %{REQUEST_FILENAME} setup\.php$
+RewriteRule .* - [R=404,L]
+RewriteCond %{REQUEST_FILENAME} functions\.php$
+RewriteRule .* - [R=404,L]
+RewriteCond %{REQUEST_FILENAME} bootstrap\.php$
+RewriteRule .* - [R=404,L]
+
+RewriteCond %{REQUEST_FILENAME} !-l
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule .* %{ENV:BASE}/index.php [L,QSA]
+RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
-- 
GitLab