<!--
	Nonfunctional subdomains, all of which point to the homepage:

		- addons
		- forums
		- replays
		- units
		- wiki

-->
<ruleset name="Battle for Wesnoth (partial)" platform="cacert">

	<target host="wesnoth.org" />
	<target host="*.wesnoth.org" />
		<exclusion pattern="^http://(addons|replays)\.wesnoth\.org/icons/$" />
		<exclusion pattern="^http://(units|wiki)\.wesnoth\.org/skins/$" />


	<rule from="^http://(?:((?:addonlist|bugs|changelog|dev(?:-addons|docs)|eclipse|gettext|irclogs|manual|patches|stable-(?:addons|changelog)|(?:web)?svn|wesnothd)\.)|www\.)?wesnoth\.org/"
		to="https://$1wesnoth.org/" />

	<rule from="^http://(addons|replays)\.wesnoth\.org/icons/"
		to="https://$1.wesnoth.org/icons/" />

	<rule from="^https?://(?:units|wiki)\.wesnoth\.org/skins/"
		to="https://wesnoth.org/mw/skins/" />

	<rule from="^http://wiki\.wesnoth\.org/favicon\.ico$"
		to="https://wiki.wesnoth.org/favicon.ico" />

</ruleset>
