In my .htaccess file I have the following RewriteRules:
RewriteRule ^content/(.*)\.(txt|md|mdown)$ error [R=301,L]
RewriteRule ^site/(.*) error [R=301,L]
These work well for blocking direct access to txt|md|mdown
file types and the entire site/
directory.
That said, I'm working on building out an .appcache
file to cache my site for offline viewing and need to be able to access these files and directories from the .appcache
file. I have the .appcache
file set up and I'm getting the following error in the browser:
Application Cache Error event: Resource fetch failed (-1) http://website.com/site/panel/blueprints/home.php
Is it possible to update the RewriteRule to allow for access from this file?