<!--
	Mismatches:

		- 404.s.sapo.pt	(CN: js.sapo.pt; works)
		- h.s.sl.pt	(ditto)
		- i.s.sl.pt	(ditto)


	Nonfunctional domains:

		- exameinformatica.sapo.pt
-->
<ruleset name="Sapo.pt" default_off="no response">

	<target host="sapo.pt" />
	<target host="*.sapo.pt" />
	<target host="h.s.sl.pt" />


	<securecookie host="^(?:login|pub)\.sapo\.pt$" name=".+" />


	<!--	- !www 403s over https
		- !www 301s to www over http
		- At least some pages 301 to http
								-->
	<rule from="^http://(?:www\.)?sapo\.pt/(css/|imgs/|pub/|widgets/)"
		to="https://www.sapo.pt/$1" />

	<rule from="^http://(login|pub|pubimgs)\.sapo\.pt/"
		to="https://$1.sapo.pt/" />

	<rule from="^http://h\.s\.sl\.pt/css-pt-2011/"
		to="https://www.sapo.pt/css/" />

	<rule from="^http://h\.s\.sl\.pt/imgs/(?:v12/)?"
		to="https://www.sapo.pt/imgs/" />

</ruleset>
