• Resolved wpjrbarch

    (@wpjrbarch)


    While developing my site, am using an htaccess file in the root directory to block all IP’s other than my own.

    Will allowing a guest IP in your plugin’s individual post settings, override the above?

    Thank you,
    wpjrbarch

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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)

    Solved: had to allow access through the maintenance mode plugin. All working as expected now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess priority’ is closed to new replies.