<ruleset name="OpenTTD (partial)" platform="mixedcontent">

	<target host="openttd.org"/>
	<target host="*.openttd.org"/>
		<!--
			Website has been broken by moving media to //media.openttd.org,
			and making s://media.../.* 301 to itself.
				Fix this by excluding media.
					-->
		<exclusion pattern="^http://(devs|media)\.openttd\.org/"/>
	<target host="openttdcoop.org"/>
	<target host="blog.openttdcoop.org"/>
	<target host="dev.openttdcoop.org"/>
	<target host="paste.openttdcoop.org"/>
	<target host="www.openttdcoop.org"/>

	<securecookie host="^(.*\.)?openttdcoop\.org$" name=".*"/>

	<rule from="^http://(\w+\.)?openttd\.org/"
		to="https://$1openttd.org/"/>
<!--
Rules for binaries are disabled after an IRC request from the site's admins:

	<target host="*.binaries.openttd.org"/>
	<rule from="^http://\w+\.binaries\.openttd\.org/"
		to="https://secure.openttd.org/binaries/"/>
-->

	<rule from="^http://(blog\.dev\.|paste\.|www\.)?openttdcoop\.org/"
		to="https://$1openttdcoop.org/"/>

</ruleset>
