Forum Moderators: phranque
Under no circumstances should the user be able to directly access any file from /cache/ in the browser.
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /cache/
RewriteRule ^cache/file-(\d+\.html) http://www.example.com/page/$1 [R=301,L]
I'm trying to create an .htaccess file at /cache/.htaccess to accomplish this, but 'Deny from all' prevents my rewrite rule from working.
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(cache|logs)/
RewriteRule ^.* - [F] I recently looked up PROPFIND* (8 letters) for some reason which now escapes me.