I'm am trying to block a group of IP addresses from my store but I don't want to visitor to see a "forbidden page" but rather a "contact us" page.
I did some googling and got some help from this forum and came up with this to put in my .htaccess file:
Code: Select all
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^(123\.123\.123\.123)$
RewriteRule ^/* contactus.html [R=301,L]
Besides setting the redirect to another website, is there anyway to solve this problem?
Any help would be greatly appreciated.
Thank you