-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(.htaccess): avoid formatting htaccess
- Loading branch information
Mathieu Hermann
committed
Nov 14, 2024
1 parent
75a6a9a
commit 0f5d947
Showing
1 changed file
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On # Redirection of requests to index.html RewriteCond | ||
%{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] RewriteCond | ||
%{DOCUMENT_ROOT}%{REQUEST_URI} -d RewriteRule ^.*$ - [NC,L] # Redirect all | ||
non-file routes to index.html RewriteRule ^(?!.*\.).*$ index.html [NC,L] | ||
</IfModule> | ||
RewriteEngine On | ||
|
||
# Redirection of requests to index.html | ||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR] | ||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d | ||
RewriteRule ^.*$ - [NC,L] | ||
# Redirect all non-file routes to index.html | ||
RewriteRule ^(?!.*\.).*$ index.html [NC,L] | ||
</IfModule> | ||
|