
<!--
Disabled by https-everywhere-checker because:
Fetch error: http://opticsinfobase.org/ => https://www.opticsinfobase.org/: (60, 'SSL certificate problem: unable to get local issuer certificate')
Fetch error: http://www.opticsinfobase.org/ => https://www.opticsinfobase.org/: (60, 'SSL certificate problem: unable to get local issuer certificate')

-->

<!--
Disabled by https-everywhere-checker because:
Fetch error: http://opticsinfobase.org/ => https://www.opticsinfobase.org/: (28, 'Resolving timed out after 10518 milliseconds')
Fetch error: http://www.opticsinfobase.org/ => https://www.opticsinfobase.org/: (28, 'Resolving timed out after 10520 milliseconds')

	!functional:
		- (www.)osa-opn.org	(www: interrupted; doesn't translate directly to osa.org)
-->
<ruleset name="Optical Society of America (partial)" default_off='failed ruleset test'>

	<target host="opticsinfobase.org"/>
	<target host="www.opticsinfobase.org"/>
	<target host="osa.org"/>
	<target host="*.osa.org"/>
		<!--	redirects to http	-->
		<exclusion pattern="^http://www\.osa\.org/(?:en-us|video_library)/"/>

	<securecookie host="^www\.opticsinfobase\.org$" name=".+" />
	<!--	observed osa.org cookies:
			- ^account
			- ^eweb2	-->
	<securecookie host="^.*\.osa\.org$" name=".+" />

	<!--	certs don't match !www		-->
	<rule from="^http://o(pticsinfobase|sa)\.org/"
		to="https://www.o$1.org/"/>

	<rule from="^http://www\.opticsinfobase\.org/"
		to="https://www.opticsinfobase.org/"/>

	<rule from="^http://(account|eweb2|www)\.osa\.org/"
		to="https://$1.osa.org/"/>

</ruleset>
