Routes for React

This commit is contained in:
2024-07-22 04:27:02 +02:00
parent 20db2301cb
commit 06ce614c2b
3 changed files with 13 additions and 9 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
RewriteEngine On
RewriteBase /phpCourse/exam/dist/
RewriteBase /phpCourse/exam/dist
## Frontend routing required all non files to be rewritten to the entry point
## Disallow direct entry over the dist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [L,NC,QSA]
RewriteRule ^ / [L,NC,QSA,F]