« Return to Thread: [OT] Apache error log

Re: [OT] Apache error log

by James Harvard :: Rate this Message:

Reply to Author | View in Thread

FWIW I don't think this needs two rules. This should work just as well:

RewriteRule \.inc$ - [L,NS,NC,F]

At 10:25 -0400 8/7/09, Jason Huck wrote:
># disallow direct serving of .inc files
># this method should avoid cluttering up apache's
># error logs with subrequests.
># -------------------------------------------------------------------
>RewriteCond %{REQUEST_URI}  ^.*\.inc$  [NC]
>RewriteRule (.*)  - [L,NS,F]

--
This list is a free service of LassoSoft: http://www.LassoSoft.com/
Search the list archives: http://www.ListSearch.com/Lasso/Browse/
Manage your subscription: http://www.ListSearch.com/Lasso/


 « Return to Thread: [OT] Apache error log