I am trying to trim my htacess file. Other than the # lines is there any way I could make it smaller? It seems to be working as I was hoping as is. Cut I was hoping there might be a way to have more one ip per line, instead of doing one line for every ip address.
<Files 403.shtml>
order allow,deny
allow from all
</Files>
# -- MOD: Forbid Cross Site Scripting in query
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^.*(allow_url_include|auto_prepend_file).* [NC]
RewriteRule ^(.*)$ - [F,L]
</IfModule>
# -- END MOD: Forbid Cross Site Scripting in query
deny from 180.76.5.0/24
deny from 198.23.76.220
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^(38\.100\.121\.65|206\.141\.173\.244|68\.14\.15\0./24)$
RewriteRule ^(.*)$ http://www.dog.com/$1 [L,R=301]
RewriteCond %{REMOTE_ADDR} ^(18\.10\.11\.51|106\.142\.130\.214|168\.114\.125\0/.24)$
RewriteRule ^(.*)$ http://www.cat.com/$1 [L,R=301]
<IfModule mod_rewrite.c>
RewriteRule ^About\-us\.php$ About\-Me\.php [R=301,NE,QSA,L]
</IfModule>
#RVS END REDIRECT PAGE