diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..a3aa8d3 --- /dev/null +++ b/.htaccess @@ -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]