From 637b86f1a221f09d1cdfb35030b7ab056add422d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 26 Jan 2025 14:02:48 +0200 Subject: feat(views): Implement a proper router --- apache/sites/nowayforward_human.conf.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apache/sites') diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl index ba010c7..2a5f58f 100644 --- a/apache/sites/nowayforward_human.conf.tpl +++ b/apache/sites/nowayforward_human.conf.tpl @@ -7,11 +7,13 @@ SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/" - RedirectMatch "^/$" /home/index.php - RedirectMatch "^/index.html$" /home/index.php - RedirectMatch "^/index.php$" /home/index.php - RewriteEngine On + RewriteCond %{HTTP:Authorization} ^(.*) RewriteRule .* - [e=HTTP_AUTHORIZATION:%1] + + RewriteCond %{REQUEST_URI} !/archives.* + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f + RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ /global/router.php -- cgit v1.2.3