From ce0d323bd51eee6925a600dc3e9cb3ac855d924b Mon Sep 17 00:00:00 2001 From: rektdeckard Date: Thu, 26 Nov 2020 01:07:42 -0500 Subject: [PATCH] public: modify .htaccess to redirect nonexistent routes to index.html --- public/.htaccess | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 public/.htaccess diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..b2b1c78 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,9 @@ +RewriteEngine On +RewriteCond %{HTTPS} !=on +RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] + +Options +SymLinksIfOwnerMatch +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule . /index.html [L] \ No newline at end of file