diff www/.htaccess @ 0:b51518614818 default tip

New Files
author Pluto <meokcin@gmail.com>
date Tue, 03 Sep 2024 15:57:25 +0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/www/.htaccess	Tue Sep 03 15:57:25 2024 +0800
@@ -0,0 +1,11 @@
+Options -Indexes
+
+<ifModule mod_rewrite.c>
+    # Force HTTPS
+    RewriteEngine On
+
+    # Activate a virutal file system and send every request of a non existing file to index.php?apiReq=(...)
+    RewriteCond %{REQUEST_FILENAME} !-f
+    RewriteCond %{REQUEST_FILENAME} !-d
+    RewriteRule ^(.*)$ index.php?path=$1 [L,QSA]
+</ifModule>