<ruleset name="University of North Texas (partial)" platform="mixedcontent">

	<target host="unt.edu" />
	<target host="*.unt.edu" />
	<target host="www.*.unt.edu" />
	<target host="*.hsc.unt.edu" />
	<target host="www.*.hsc.unt.edu" />
	<target host="*.library.unt.edu" />
	<target host="www.*.library.unt.edu" />
	<target host="*.lt.unt.edu" />
	<target host="www.*.lt.unt.edu" />
	<target host="studyabroad.admin.unt.edu" />
	<target host="www.studyabroad.admin.unt.edu" />


	<!--	Handle subdomains for which the HTTPS
		subdomain should be preceeded by www.	-->
	<rule from="^https?://(?:www\.)?((?:ci|coe|hsc|library)\.)?unt\.edu/"
		to="https://www.$1unt.edu/" />

	<!--	Handle subdomains for which the HTTPS subdomain
		should _not_ be preceeded by www.	-->
	<rule from="^https?://(?:www\.)?((?:studyabroad\.admin)|afrotc|ally|ams|announce|annualreport|anthropology|c3b|calendar|call|careercenter|chile|citc|clear|compliance|conduct|coop|copyright|courses|dcbest|deanofstudents|development|dining|discoverypark|dos|dplife|eagleconnect|ecampus(?:support)?|edo|ee|efec|emds|emergency|endow|eng|engineering|essc|etec|facilities|factbook|financialaid|forms|gallery|gartner|greeklife|healthcenter|home|honors|hr|(?:cme|profile)\.hsc|iarta|ieli|imaging|info|inhouse|international|internships|inthenews|itunes|jaguarconnect|faculty(?:jobs)?|jazz|jobs|journalism|kddi|larc|learningcenter|(?:irservices|iii)\.library|(?:(?:classes|moodle)\.)?lt|messaging|moneymanagement|mtse|music|my|my[fl]s|northtexan|orgs|osprey|paccar|pacs|policy|pps|reac|records|recsports|research|reslife|rms|rtvf|security|smartenergy|spanishmedia|sportpsych|staffcouncil|src|student(?:activities|affairs|legal)|surfaces|sustainable|tams|tara|tcet|telecom|texasbest|thecblor|tours|transfer(?:institute|now)|transition|trio|tsgs|txcdk|union|unt(?:onthesquare|preview|system)|veteranscenter|virtualtour|volunteer|vpaa|vpsd|vtl|web[23]|webadmin|wiki|psychology)\.unt\.edu/"
		to="https://$1.unt.edu/" />

	<!--	As a convenience, redirect http://www.psyc.unt.edu/
		(which does not appear	to support HTTPS.) Among other
		things, this may reduce the number of HTTP requests.

		pyschology.unt.edu no longer has a valid certificate

	<rule from="^https?://(?:www\.)?psyc\.unt\.edu/"
		to="https://psychology.unt.edu/" />
        -->

	<!--	The following two redirects are a convenience for
		finding policies under what seems to be newer-style URLs. -->
	<rule from="^https?://(?:www\.)?unt\.edu/policy/UNT_Policy/volume\d/(\d+)_(\d+)\.html$"
		to="https://policy.unt.edu/policy/$1-$2" />

	<rule from="^https?://(?:www\.)?unt\.edu/policy/UNT_Policy/volume\d/(\d+)_(\d+)_(\d+)\.html$"
		to="https://policy.unt.edu/policy/$1-$2-$3" />
</ruleset>
