# Turn on the rewriting engine
RewriteEngine On  
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !\.(html|php|css|js)$
RewriteRule    ^(.*)$    <t4 type="media" id="ID OF media-restriction.php" formatter="path/*" />    [NC,L]