From 94daf8ad98b19afbd4320078b9d1ee25c9fb82f1 Mon Sep 17 00:00:00 2001 From: c+1 Date: Sun, 1 Sep 2024 21:48:56 -0400 Subject: Initial commit. Allows for the uploading of files. --- public/.htaccess | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 public/.htaccess (limited to 'public/.htaccess') diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..e46b2d9 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,10 @@ +RewriteEngine On + +RewriteCond %{REQUEST_URI} ^/$ [OR] +RewriteCond %{REQUEST_URI} ^/index\.php$ +RewriteRule ^(.*)$ /index.php [L] + +RewriteCond %{QUERY_STRING} ^v=([a-zA-Z0-9\_\-\~\!\*]{8})$ +RewriteRule ^$ /view.php?v=%1 [L,QSA] + +RewriteRule ^admin\.php$ /admin.php [L] -- cgit v1.2.3