<!--
	Imgur now has full HTTPS support on all subdomains.
	Previously, there were issues as discussed :

		- https://mail1.eff.org/pipermail/https-everywhere-rules/2013-July/001645.html
		- https://bugzilla.mozilla.org/show_bug.cgi?id=866986#c7

	Ruleset simplified and fixed by bryn@imgur.com, January 2014.


	Fully covered domains:

		- imgur.com

		- *.imgur.com:

			- i
			- origin
			- s
			- i.stack
			- www

		- img.imgur.com		(→ i)
		- store.imgur.com	(→ imgur-store.myshopify.com)

-->
<ruleset name="Imgur">

	<target host="imgur.com" />
	<target host="*.imgur.com" />


	<securecookie host="^\.?imgur\.com" name=".+" />


	<rule from="^http://imgur\.com/"
		to="https://imgur.com/" />

	<rule from="^http://img\.imgur\.com/"
		to="https://i.imgur.com/" />

	<rule from="^http://store\.imgur\.com/"
		to="https://imgur-store.myshopify.com/" />

	<rule from="^http://([\w.]+\.)?imgur\.com/"
		to="https://$1imgur.com/" />

</ruleset>
