<!--
	CDN buckets:

		- www.jscache.com.edgesuite.net


	Other TripAdvisor rulesets:

		- VirtualTourist.xml


	Nonfunctional tripadvisor.com subdomains:

		- cobrands **
		- flights *	(mismatched, CN: *.seatguru.com)
		- flights-cdn ***
		- ir
		- no *
		- pl *
		- th ***
		- tripwow *
		- tuiuk **
		- virtualtourist **

	* Some [all?] pages redirect to http
	** Times out
	*** Some [all?] pages redirect to http, akamai


	Problematic domains:

		- www.jscache.com	(redirects to http, akamai)
		- tripadvisor.com	(cert only matches *.tripadvisor.com)


	Partially covered subdomains:

		- (www.)	(^ → www, some pages redirect to http)


	Fully covered domains:

		- www.jscache.com	(→ c1.tacdn.com)

-->
<ruleset name="TripAdvisor (partial)">

	<target host="www.jscache.com" />
	<target host="c1.tacdn.com" />
	<target host="www.t-analytics.com" />
	<target host="tripadvisor.com" />
	<target host="*.tripadvisor.com" />


	<securecookie host="^www\.t-analytics\.com$" name=".+" />
	<securecookie host="^webmail\.tripadvisor\.com$" name=".+" />


	<rule from="^http://(?:www\.jscache|c1\.tacdn)\.com/"
		to="https://c1.tacdn.com/" />

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

	<rule from="^http://(?:www\.)?tripadvisor\.com/(favicon\.ico|img/|Registration(?:$|\?))"
		to="https://www.tripadvisor.com/$1" />

	<rule from="^http://(cdn|media-cdn|remote|webmail)\.tripadvisor\.com/"
		to="https://$1.tripadvisor.com/" />

</ruleset>