X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/9b0e83daebf9e9ecda0f071bf51a9317f6d6384e..79d486cb111a13ce1d2858373188ea94252cf057:/static/.htaccess diff --git a/static/.htaccess b/static/.htaccess index 4f38f87..fe09a63 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -1,15 +1,7 @@ -# don't add .html in the rewrite below -Options -MultiViews - -RewriteEngine On -RewriteBase / -# if not already on bandali.eu.org, redirect to there -RewriteCond %{HTTP_HOST} !^bandali\.eu\.org$ -RewriteRule ^(.*)$ https://bandali.eu.org/$1 [R] - -# now we have to explicitly tell apache that files with no -# extension are actually .html +# since we set Options -MultiViews in ../.htaccess, we now have to +# explicitly tell apache that files with no extension are actually +# .html files RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]