Suppose as well as the redirection I wanted to make forbidden for the two
ips, and redirect them to another page, would something like this work:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com
RewriteRule (.*) https://www.example.com/$1[R=301,L]
ErrorDocument 403
http://www.example.com/index2.html
<Limit GET HEAD POST>
order allow,deny
deny from 212.6.7.8
deny from 213.7.7.8
allow from all
</Limit>