<!--
	For other Qihoo 360 Technology coverage, see 360.cn.xml.

	Problematic hosts in *qhimg.com:
		- p[0-25] ᵐ
		- s[0-20] ᵐ
	ᵐ Cloudfront/mismatched
-->

<ruleset name="Qhimg.com">

	<!--	Direct rewrites:	-->
	<target host="p.ssl.qhimg.com" />
		<test url="http://p.ssl.qhimg.com/t01d7a0f7ad1686fd15.png" />
	<target host="p0.ssl.qhimg.com" />
	<target host="p1.ssl.qhimg.com" />
	<target host="p2.ssl.qhimg.com" />
	<target host="p3.ssl.qhimg.com" />
	<target host="p4.ssl.qhimg.com" />
	<target host="p5.ssl.qhimg.com" />
	<target host="ps.ssl.qhimg.com" />
		<test url="http://ps.ssl.qhimg.com/dr/_110_100/t01ccab96eb996185a5.gif" />

	<target host="s.ssl.qhimg.com" />
		<test url="http://s.ssl.qhimg.com/static/ae3930b4f8e9da71.pdf" />
	<target host="s0.ssl.qhimg.com" />
	<target host="s1.ssl.qhimg.com" />
	<target host="s2.ssl.qhimg.com" />
	<target host="s3.ssl.qhimg.com" />
	<target host="s4.ssl.qhimg.com" />
	<target host="s5.ssl.qhimg.com" />

	<target host="weather.ssl.qhimg.com" />
		<test url="http://weather.ssl.qhimg.com/sed_api_weather_info.php" />
	<target host="qweather.ssl.qhimg.com" />
		<test url="http://qweather.ssl.qhimg.com/sed_api_weather_info.php" />

	<!--	Complications:	-->
	<target host="p0.qhimg.com" />
	<target host="p1.qhimg.com" />
	<target host="p2.qhimg.com" />
	<target host="p3.qhimg.com" />
	<target host="p4.qhimg.com" />
	<target host="p5.qhimg.com" />
	<target host="p6.qhimg.com" />
	<target host="p7.qhimg.com" />
	<target host="p8.qhimg.com" />
	<target host="p9.qhimg.com" />
	<target host="p15.qhimg.com" />
	<target host="p16.qhimg.com" />
	<target host="p17.qhimg.com" />
	<target host="p18.qhimg.com" />
	<target host="p19.qhimg.com" />
	<target host="p20.qhimg.com" />
	<target host="p21.qhimg.com" />
	<target host="p22.qhimg.com" />
	<target host="p23.qhimg.com" />
	<target host="p24.qhimg.com" />
	<target host="p25.qhimg.com" />
		<test url="http://p25.qhimg.com/d/inn/cd9dbb41/d/p25.png" />

	<target host="s0.qhimg.com" />
	<target host="s1.qhimg.com" />
	<target host="s2.qhimg.com" />
	<target host="s3.qhimg.com" />
	<target host="s4.qhimg.com" />
	<target host="s5.qhimg.com" />
	<target host="s6.qhimg.com" />
	<target host="s7.qhimg.com" />
	<target host="s8.qhimg.com" />
	<target host="s9.qhimg.com" />
	<target host="s15.qhimg.com" />
	<target host="s16.qhimg.com" />
	<target host="s17.qhimg.com" />
	<target host="s18.qhimg.com" />
	<target host="s19.qhimg.com" />
	<target host="s20.qhimg.com" />
		<test url="http://s20.qhimg.com/static/ae3930b4f8e9da71.pdf" />

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

	<rule from="^http://(p|s)(0|1|2|3|4|5)\.qhimg\.com/"
		to="https://$1$2.ssl.qhimg.com/" />

	<rule from="^http://p\d+\.qhimg\.com/"
		to="https://p.ssl.qhimg.com/" />

	<rule from="^http://s\d+\.qhimg\.com/"
		to="https://s.ssl.qhimg.com/" />

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