Skip to content

Commit

Permalink
fix(.htaccess): avoid formatting htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Hermann committed Nov 14, 2024
1 parent 75a6a9a commit 0f5d947
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/.htaccess
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>

0 comments on commit 0f5d947

Please sign in to comment.