RewriteEngine On
RewriteBase /mdns/

# If file exists, serve it
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Otherwise proxy everything through proxy.php
RewriteRule ^(.*)$ proxy.php?path=$1 [QSA,L]
