<!--
	CDN buckets:

		- cdn.optimizely.com.edgekey.net/.../
			- e5048.g.akamaiedge.net/.../

			- cdn3

	cdn.iptimizely.com/$ shows AWS "AccessDenied".


	Fully covered subdomains:

		- cdn3
		- *.log		(web bugs)


	cdn sets the following wildcard cookies
	on whichever domain it is loaded from:

		- optimizelyBuckets
		- optimizelyEndUserId
		- optimizelyPendingLogEvents
		- optimizelySegments

-->
<ruleset name="Optimizely">

	<target host="optimizely.com" />
	<target host="*.optimizely.com" />


	<securecookie host="^(?:.*\.)?optimizely\.com$" name=".*" />


	<rule from="^http://optimizely\.com/"
		to="https://www.optimizely.com/" />

	<rule from="^http://(cdn\d?|\d+\.log|log3|www)\.optimizely\.com/"
		to="https://$1.optimizely.com/" />

	<rule from="^http://support\.optimizely\.com/(help|pkg|stylesheets)/"
		to="https://asset-2.tenderapp.com/$1/"/>

</ruleset>
