From cefd6ec752e4b908d0e7ddbac9de4c872f18a300 Mon Sep 17 00:00:00 2001 From: MartinH0 Date: Thu, 30 Jan 2020 18:51:38 +0100 Subject: [PATCH] Add htaccess to redirect if not found to index If (file not found or directory not found) then > redirect to index.html --- public/.htaccess | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 public/.htaccess diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 00000000..638a7c82 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine on +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^.*$ /index.html [L]