# Created 03-jan-2011 22h55
# Go to http://breno.sarmen.to/adsense-proxy/ for more information

<IfModule mod_rewrite.c>

	Options +FollowSymLinks
	Options -Indexes

	RewriteEngine On
	RewriteBase /

	# There is no pagead directory here. Get it from the root
	RewriteCond %{REQUEST_URI} pagead/show_ads.js [NC]
	RewriteRule (.*) show_ads.js [NC,L]
	
	# Proxies everything that does not exist
	RewriteCond %{REQUEST_FILENAME} !-s [NC]
	RewriteCond %{REQUEST_FILENAME} !-d [NC]
	RewriteCond %{REQUEST_FILENAME} !-l [NC]
	RewriteRule (.*) /proxy.php?params=$1?%{QUERY_STRING} [NC,L]

</IfModule>
