add .htaccess
[~bandali/bndl.org] / static / .htaccess
diff --git a/static/.htaccess b/static/.htaccess
new file mode 100644 (file)
index 0000000..96c757e
--- /dev/null
@@ -0,0 +1,9 @@
+# www -> no-www
+<IfModule mod_rewrite.c>
+RewriteEngine On
+RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
+RewriteRule ^ %{REQUEST_SCHEME}://%1%{REQUEST_URI} [R,L]
+</IfModule>
+
+# custom 404 page
+ErrorDocument 404 /404.html