I am trying to redirect all ip addresses to my Homepage except mine
I have tried to add this line of code to my .htaccess of my root folder.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} !^121.122.111.114
RewriteRule .* https://www.google.com [R=302,L]
</IfModule>
It redirects me also to Google.com. I am expecting all other iP address should redirect to my homepage. Only me with specific IP address should be able to access Wordpress Login (mysite.com/wp-admin)
I must be doing something wrong.