
<!--
Disabled by https-everywhere-checker because:
Fetch error: http://oculusvr.com/ => https://oculusvr.com/: (60, 'SSL certificate problem: unable to get local issuer certificate')
Fetch error: http://careers.oculusvr.com/ => https://careers.oculusvr.com/: (60, 'SSL certificate problem: unable to get local issuer certificate')
Fetch error: http://share.oculusvr.com/ => https://share.oculusvr.com/: (6, 'Could not resolve host: share.oculusvr.com')
Fetch error: http://www.oculusvr.com/ => https://www.oculusvr.com/: (60, 'SSL certificate problem: unable to get local issuer certificate')

	CDN buckets:

		- s3.amazonaws.com/static.oculus.com/
		- d11g5bl75h7gks.cloudfront.net


	Problematic hosts in *oculusvr.com:

		- answers ¹
		- forums ¹
		- static ²
		- storystudio ¹
		- www1 ¹

	¹ Shows www1.oculus.com
	² Cloudfront/mismatched

-->
<ruleset name="Oculus VR" default_off="failed ruleset test">

	<!--	Direct rewrites:
				-->
	<target host="oculusvr.com" />
	<target host="careers.oculusvr.com" />
	<target host="developer.oculusvr.com" />
	<target host="share.oculusvr.com" />
	<target host="www.oculusvr.com" />

	<!--	Complications:
				-->
	<target host="answers.oculusvr.com" />
	<target host="forums.oculusvr.com" />
	<target host="static.oculusvr.com" />
	<target host="storystudio.oculusvr.com" />
	<target host="www1.oculusvr.com" />


	<securecookie host="^\w" name=".+" />


	<!--	Redirect keeps path and args,
		but not forward slash:
					-->
	<rule from="^http://(?:answers|forums|storystudio|www1)\.oculusvr\.com/+"
		to="https://www.oculus.com/" />

	<rule from="^http://static\.oculusvr\.com/"
		to="https://d11g5bl75h7gks.cloudfront.net/" />

	<rule from="^http:"
		to="https:" />

</ruleset>
