<!--
	CDN buckets:

		- dakeffzy54mxb.cloudfront.net

			- www.invitemedia.com

		- akamai.invitemedia.com.edgesuite.net


	Problematic subdomains:

		- ^
		- www		(cloudfront)
		- akamai	(works, akamai)
		- bub.px	(depth mismatched)


	bub.px, g-pixel, pixel, & segment-pixel serve web bugs.

-->
<ruleset name="Invite Media (partial)">

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


	<securecookie host="^\.invitemedia\.com$" name="^(?:segments_p1|uid)$" />


	<rule from="^http://(?:www\.)?invitemedia\.com/([\w-]+\.(?:css|png))"
		to="https://www.invitemedia.com/$1" />

	<!--	Seems to work (and who cares if it doesn't):
								-->
	<rule from="^http://bub\.px\.invitemedia\.com/"
		to="https://pixel.invitemedia.com/" />

	<rule from="^http://(?:dashboard(?:-cdn)?|g-pixel|pixel|segment-pixel)\.invitemedia\.com/"
		to="https://$1.invitemedia.com/" />

</ruleset>