Some more info on the above:
While developing my WordPress site, am using an htaccess file in the root directory to block all IP’s other than my own (using the following code – syntax IP_ADDRESS_XXX = 123.123.123.123):
#RESTRICT ACCESS TO DASHBOARD AND LOGIN PAGE
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp-admin$
RewriteCond %{REMOTE_ADDR} !^IP_ADDRESS_ONE$
RewriteRule ^(.*)$ – [R=403,L]
</IfModule>
However, I would like to allow a guest IP to access a guest post ONLY, so below the above code in htaccess I have added:
#ALLOW GUEST IP
allow from IP_ADDRESS_TWO
Have also allowed access in the plugin to the guest post, to myself OR the guest IP.
I can access the guest post but my guest lands on my maintenance page – would appreciate any help.
Regards,
jrbarch (wpjrbarch)