public: modify .htaccess to redirect nonexistent routes to index.html

This commit is contained in:
rektdeckard
2020-11-26 01:07:42 -05:00
parent 7bf1833ea2
commit ce0d323bd5

9
public/.htaccess Normal file
View File

@@ -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]