$(STATIC): ; ln -s $(PWD)/static/$(notdir $@) $@
deploy:
- rsync -avzLP out/ abandali@bandali.eu.org:www/
+ rsync -avzLP out/ abandali@bandali.eu.org:www/site/
+ ssh abandali@bandali.eu.org mv www/site/.htaccess-www www/.htaccess
.PHONY: deploy
<IfModule mod_rewrite.c>
-# 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]
</IfModule>
--- /dev/null
+<IfModule mod_rewrite.c>
+# don't add .html in the rewrite below
+Options -MultiViews
+
+RewriteEngine On
+RewriteBase /
+# if on csclub.uwaterloo.ca, redirect to bandali.eu.org
+RewriteCond %{HTTP_HOST} ^csclub\.uwaterloo\.ca$
+RewriteRule ^(.*)$ https://bandali.eu.org/$1 [R]
+</IfModule>