SRC := $(filter-out $(wildcard meta_*),$(wildcard *.m4))
OUTPUTS := $(patsubst %.m4,out/%.html,$(SRC))
-STATIC := $(patsubst static/%,out/%,$(wildcard static/*))
+STATIC := $(patsubst static/%,out/%,$(wildcard static/* static/.*))
all: $(OUTPUTS) out/notes.atom out/notes.rss out/style.css $(STATIC)
--- /dev/null
+# 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