<!--
	Other Free Software Foundation rulesets:

		- GNU.org.xml
		- GnuPG.org.xml


	Nonfunctional domains:

		- shop.fsf.org		(redirects to http):
		- specialk.nongnu.org	(dropped)


	Fully covered domains:

		- fsf.org subdomains:

			- cas

-->
<ruleset name="Free Software Foundation">

	<target host="fsf.org" />
	<target host="*.fsf.org" />
	<target host="bugs.gnewsense.org" />

        <target host="*.nongnu.org" />
		<!--exclusion pattern="^http://specialk\.nongnu\.org/" /-->


	<!--	There's a cross-domain session cookie, which is not
		handled in case it's used on unsecurable pages.
			In particular, shop.fsf.org is not fully
		securable, and seems to share a login system with www.
		-->
	<securecookie host="^(\.crm|my|status)\.fsf\.org$" name=".*" />


	<rule from="^http://((?:cas|crm|my|static|status|u|www)\.)?fsf\.org/"
		to="https://$1fsf.org/" />

	<!--	- Shows www's data over https
		- 301s like so over http
						-->
	<rule from="^http://donate\.fsf\.org/"
		to="https://my.fsf.org/donate/" />

	<!--	- Shows www data over https
		- Redirects like so over http
			-->
	<rule from="^http://patron\.fsf\.org/"
		to="https://www.fsf.org/patrons" />

	<!--	These paths redirect to http:

			- $
			- cart/$
			- category/\w+/$
			- product/\w+/$

		There may be more than are handled here that don't.
			-->
	<rule from="^http://shop\.fsf\.org/(faq/$|jf$|static/|termsofsale/$)"
		to="https://shop.fsf.org/$1" />

	<!--	Redirects like so.
					-->

	<rule from="^http://bugs\.gnewsense\.org/(?:.*)"
		to="https://savannah.nongnu.org/bugs/?group=gnewsense" />

        <rule from="^http://(lists|savannah)\.nongnu\.org/"
		to="https://$1.nongnu.org/" />

</ruleset>
