Skip to content

Instantly share code, notes, and snippets.

@thefinn93
Created March 12, 2012 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thefinn93/2024323 to your computer and use it in GitHub Desktop.
Save thefinn93/2024323 to your computer and use it in GitHub Desktop.
HTTPS everywhere ruleset
<ruleset name="xkcd">
<target host="xkcd.com" />
<target host="xkcd.org" />
<target host="*.xkcd.com" />
<target host="*.xkcd.org" />
<target host="www.store.xkcd.com" />
<rule from="^http://(www\.|m\.)?xkcd\.(?:com|org)/"
to="https://$1xkcd.com/" />
<rule from="^http://(?:www\.)?store\.xkcd\.com/"
to="https://store.xkcd.com/" />
<rule from="^http://imgs\.xkcd\.com/"
to="https://sslimgs.xkcd.com/" />
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment