RewriteEngine On RewriteLog logs ids log RewriteLogLevel the following

1
2
3
4
5
6
7
8
RewriteEngine On
RewriteLog logs/ids.log
RewriteLogLevel 2
# the following RewriteRule should be in one line:
RewriteCond %{REQUEST_METHOD} ^{|TRACE|TRACK|DELETE|LINK|UNLINK|OPTION|PUT|PATCH}
RewriteRule .* - [F,L]
RewriteRule \.\.|\.\.\.|\s|\.|\.|\+|\/\/|\[|\]|\;|\~|\#|\%|\^|\(|\)|\{|\}|\?|\,|<|<<|\||\!|>|>>|\@|\*|\` - [F]
RewriteRule /bin|/sbin|/etc|httpd\.conf|access_log|error_log . [F]