This is what is in the parent htaccess file, I was hoping to redirect typos and 404 found to the homepage, and to redirect the two ips:
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>
This is what is in the subdirectory htaccess file, hopefully to redirect to the subdirectory if 404 paths are typed, and to also redirect the two ips:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example\.com/sub1
RewriteRule (.*) https://www.example.com/sub1$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>