diff --git a/content/extra/.htaccess b/content/extra/.htaccess new file mode 100644 index 0000000..6e2afc5 --- /dev/null +++ b/content/extra/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine On +RewriteCond %{HTTPS} !on +RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] diff --git a/pelicanconf.py b/pelicanconf.py index 3617532..4de29ad 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -31,6 +31,7 @@ RSS_FEED_SUMMARY_ONLY = False EXTRA_PATH_METADATA = { # 'extra/robots.txt': {'path': 'robots.txt'}, 'extra/CNAME': {'path': 'CNAME'}, + 'extra/.htaccess': {'path': '.htaccess'}, } # static paths will be copied without parsing their contents @@ -38,6 +39,7 @@ STATIC_PATHS = [ 'images', # 'extra/robots.txt', 'extra/CNAME', + 'extra/.htaccess', # 'code', # 'notebooks' ] diff --git a/publishconf.py b/publishconf.py index b43dd4c..dedbd47 100644 --- a/publishconf.py +++ b/publishconf.py @@ -10,7 +10,7 @@ import sys sys.path.append(os.curdir) from pelicanconf import * -SITEURL = 'http://xsteadfastx.org' +SITEURL = 'https://xsteadfastx.org' RELATIVE_URLS = False DELETE_OUTPUT_DIRECTORY = True @@ -20,8 +20,8 @@ FEED_DOMAIN = SITEURL # Following items are often useful when publishing # PIWIK -PIWIK_URL = 'piwik.luftmentsh.org' -PIWIK_SITE_ID = 5 +#PIWIK_URL = 'piwik.luftmentsh.org' +#PIWIK_SITE_ID = 5 # DISQUS DISQUS_SITENAME = "xsteadfastx"