<!--
	Nonfunctional subdomains:

		- maxwellinstitute *
		- publications.maxwellinstitute *

	* Dropped

-->
<ruleset name="Brigham Young University (partial)" platform="mixedcontent">

	<target host="byu.edu" />
	<target host="*.byu.edu" />
		<exclusion pattern="^http://cpms\.byu\.edu/(content/|ESM($|/)|newsletters/StudentNews/)" />
		<exclusion pattern="^http://(www\.)?byu\.edu/(family|o(n|ff)campus)?housing($|/)" />
	<target host="*.groups.et.byu.net" />
		<!--	For some reason, using the "PREV" or "NEXT" buttons in the
			"Featured Research" box causes the category menu at the top of
			the page to incorrectly change from the "Graduate" heading to a
			different heading when a URL in the two patterns below is
			accessed via HTTPS, as of July 5, 2011.	-->
		<exclusion pattern="^http://www\.physics\.byu\.edu/Graduate(/?$|/[dD]efault\.aspx(\?|$))" />



	<!--	Handle domains for which the subdomain should not be preceeded by www.	-->
	<rule from="^http(?:://(?:www\.)?|s://www\.)(alumni[23]|animation|asme|assess|at|barbershop|blackboard|bookexchange|booklist|byuems|byusa|cac|calendar|ccr|cheme|chemicalengineering|cles|clsupport|comd|cougarprints|coursemanagement|cpms|creativeworks|(?:(?:(?:accounts|docs|faculty|facwiki|help|labs|students|tick)\.)?cs)|delegate|developer|education|edward|eroom|(?:(?:org|pml)\.et)|events|examstat|facultyprofile|finserve|finserve-dev|gamescenter|gamma|gamma-stg|gardner|globalcareer|go|gradebook|home|honorcode|hrms|inshop|internationalservices|irbtutorial|it|itmedia|ittest|jobs|kennedy|kronprod|lambda|leadershiped|lockers|lodges|login|map|marylou|(?:mail01\.)?math|mathed|multicultural|news|newsnet|oit|online[12]?|orca|(?:mail\.physics)|pmpc|pmpcapps|police|printandmail|purchasing|redefineservice|remedy|risk|ry|sa|saas|sasapps|scheduling|software|spiral|stab|stleader|stokes|studentratings|testing|tutoring|uac|unicomm|volta|webmail|wilk|www|y|yfacts|yjobs|yscience)\.byu\.edu/"
		to="https://$1.byu.edu/" />

	<!--	Handle domains for which the subdomain should be
		preceeded by www (including the situation where
		there is the byu.edu domain with no subdomain.)	-->
	<rule from="^http(?:://(?:www\.)?|s://)((?:acerc|et|chem|physics)\.)?byu\.edu/"
		to="https://www.$1byu.edu/" />

	<!--	Handle certain special cases.	-->
	<rule from="^http://((?:secure\.chem)|(?:support\.cheme)|(?:(?:contentdm|listserver)\.lib))\.byu\.edu/"
		to="https://$1.byu.edu/" />

	<!--	Handle subdomains for the groups.et.byu.net domain.	-->
	<rule from="^http://([a-zA-Z\d\-]+)\.groups\.et\.byu\.net/"
		to="https://$1.groups.et.byu.net/" />

</ruleset>
