projects
/
~bandali
/
bndl.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ b/
static/.htaccess
@@ -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