<!--
	Nonfunctional subdomains:

		- psychology	(redirects to as)
		- sshs		(redirects to as)


	Fully covered domains:

		- newton.ex.ac.uk

		- *.exeter.ac.uk:

			- emps

-->
<ruleset name="University of Exeter (partial)">

	<target host="ex.ac.uk" />
	<target host="*.ex.ac.uk" />

		<test url="http://empslocal.ex.ac.uk/" />

	<target host="exeter.ac.uk" />
	<target host="*.exeter.ac.uk" />
		<exclusion pattern="^http://(?:www\.)?(?:psychology|sshs)\." />


	<securecookie host="^(?:.*\.)?exeter\.ac\.uk$" name=".+" />


	<!--
		Cert only matches empslocal.ex.ac.uk, so rewrite to ex.ac.uk
		instead of the exeter.ac.uk used for all other subdomains.
	-->
	<rule from="^http://empslocal\.ex(?:eter)?\.ac\.uk/"
		to="https://empslocal.ex.ac.uk/" />

	<!--	Observed subdomains:

			- apps
			- as
			- biosciences
			- business-school
			- education
			- emps
			- evisit	(stats beacon)
			- geography
			- gosling
			- humanities
			- intranet
			- lib
			- lifesciences
			- my
			- mysso
			- newton
			- owa
			- projects
			- sid
			- socialsciences
			- srs
			- www

	Cert only matches exeter
				-->
	<rule from="^http://([\w-]+\.)?ex(?:eter)?\.ac\.uk/"
		to="https://$1exeter.ac.uk/" />

	<!--	Cert only matches //*.exeter
						-->
	<rule from="^http://(?:www\.)?([\w-]+\.)ex(?:eter)?\.ac\.uk/"
		to="https://$1exeter.ac.uk/" />

</ruleset>
