Skip to content

Commit

Permalink
Create .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
Piombacciaio authored Apr 4, 2024
1 parent 15f8e06 commit b0a6ff5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Options +MultiViews
ExpiresActive On
ExpiresDefault A300
ExpiresByType text/css A3600
ErrorDocument 404/404.html
RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+).html [NC]
RewriteRule .+ /%1 [L,R=301]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule (.*)/?$ /$1.html [L]

0 comments on commit b0a6ff5

Please sign in to comment.