Add htaccess to redirect if not found to index

If (file not found or directory not found)
then > redirect to index.html
This commit is contained in:
MartinH0 2020-01-30 18:51:38 +01:00 committed by GitHub
parent aec3de18aa
commit cefd6ec752
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

4
public/.htaccess Normal file
View file

@ -0,0 +1,4 @@
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.html [L]