diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..edd394aa --- /dev/null +++ b/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteCond %{SERVER_PORT} 80 +RewriteRule ^(.*)$ https://www.duckland.org/$1 [R,L] + diff --git a/conf.py b/conf.py index e88c5daa..888b1dd9 100644 --- a/conf.py +++ b/conf.py @@ -88,6 +88,7 @@ DEPLOY_COMMANDS = { "cd sigal; sigal build", "nikola build", "nikola check -l", + "cp .htaccess output/", "chmod -R a+rX output/", "rsync -a --delete -e 'ssh -x -i /home/don/.ssh/http -l duck' output/ wise.dreamhost.com:httpd/duckland.org/nikola", #"rsync -a --delete -e 'ssh -x -i /home/don/.ssh/http -l don' ./ don@web.duckland.org:/srv/http/work/www.duckland.org",