<!--
	CDN buckets:

		- cdn.mashable.com.edgesuite.net/.../
			- a1015.g.akamai.net/.../
		- rack.mshcdn.com.edgesuite.net/.../
			- a756.g.akamai.net/.../
		- mashableeventswidget.oxynade.netdna-cdn.com


	- rack.[0-3].mshcdn.com		(Akamai; works


	ToDo: Find bucket.


	mashable.d2.sc.omtrdc.net/b/ss/mashdev/

-->
<ruleset name="Mashable.com (partial) " platform="mixedcontent">

	<target host="mashable.com" />
	<target host="www.mashable.com" />
	<target host="*.mshcdn.com" />
		<!--
			Started 301 to http *sometimes*.


			These paths do:

				- \d{4}/\w\w/\w\w/[\w\-]+/?$	(articles)
				- assets/
				- follow/stories/shares.json?pids=...
				- follow/stories/top/?tag=\d+&ts=\d{10}
				- follow/images/[\w\-]+.\w{3}(\w{10})?$
				- follow/images/facebook/facebook_app_icon_34x28.gif
				- follow/images/new_badges/12/icebreaker_16x16.png?\d{10}
				- follow/login/facebook/
				- follow/login/oauth/twitter/
				- follow/packages/wp-datauri.css?\d{10}
				- follow/uploads/topic/image/(\w\w/){6}\w+-\w{10}.(jpe?g|png)
				- media/


			These paths don't (shhh!):

				- $
				- follow/images/avatars/thumb/
				- follow/packages/shared.js?ver=\d{10}
				- follow/packages/wp.js?ver=\d{10}
				- stories.json
				- tripleclick.html
				- wp-content/uploads/

					-->
		<exclusion pattern="^https?://(?:(?:www\.)?mashable|(?:rack\.)?\d\.mshcdn)\.com/(?:\d{4}/\d\d/\d\d/[\w\-]+/?$|assets/|follow/(?:images/(?:facebook/|new_badges/\d\d/)?[\w\-]+\.\w{3}(?:$|\?)|login/|media/|packages/wp-datauri\.css(?:$|\?)|stories/(?:shares\.json|top/)(?:$|\?)|uploads/(?:topic/image|user/avatar)/\w\w/))" />


	<rule from="^https?://(?:www\.)?mashable\.com/"
		to="https://mashable.com/" />

	<!--	mshcdn doesn't work over https.
						-->
	<rule from="^https?://(?:rack\.)?\d\.mshcdn\.com/"
		to="https://mashable.com/" />

</ruleset>
