From 72e71aff401b7fd163f6571a8e94d798a6ee8e11 Mon Sep 17 00:00:00 2001 From: MartinH0 Date: Thu, 30 Jan 2020 19:06:50 +0100 Subject: [PATCH] Updated htaccess to meet required functions. If a file gets called it will be redirected to index.html But not if it the requested File does contain a dot (and with this does have a file extension. If you call: links.domain.de/notexistingfile.jpg It will trigger 404 If you call: links.domain.de/server/[CODE-CODE-CODE]/list-short-urls/1 It will redirect the call to index.html --- public/.htaccess | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index 638a7c82..5f7ad3a8 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,4 +1,3 @@ RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-d -RewriteRule ^.*$ /index.html [L] +RewriteRule /[^/.]+$ /index.html [L]