Forum Moderators: phranque
I am now wanting to ban all access to this sub-directory, unless they have been redirected by an internal redirect (RewriteRule).
What could I use to create this conditional statement?
Thanks
A typical request from the browser looks like this:
GET /subdir/file.ext HTTP/1.1
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /subdir/file\.ext\ HTTP/
RewriteRule ^subdir/file\.ext$ http://www.example.com/original_fileURL [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /subdir/file\.ext\ HTTP/
RewriteRule ^subdir/file\.ext$ - [F]
Jim