X-Git-Url: https://git.shemshak.org/~bandali/bndl.org/blobdiff_plain/b791db4e54041eef85f573d7cac5aec9325a6379..79d486cb111a13ce1d2858373188ea94252cf057:/static/.htaccess diff --git a/static/.htaccess b/static/.htaccess index 96c757e..fe09a63 100644 --- a/static/.htaccess +++ b/static/.htaccess @@ -1,9 +1,7 @@ -# www -> no-www -RewriteEngine On -RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] -RewriteRule ^ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [R,L] +# 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] - -# custom 404 page -ErrorDocument 404 /404.html