Title: htaccess priority
Last modified: August 5, 2021

---

# htaccess priority

 *  Resolved [wpjrbarch](https://wordpress.org/support/users/wpjrbarch/)
 * (@wpjrbarch)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/htaccess-priority/)
 * 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)

 *  [gjrbarch](https://wordpress.org/support/users/jrbarch/)
 * (@jrbarch)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/htaccess-priority/#post-14743428)
 * 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)
 *  [gjrbarch](https://wordpress.org/support/users/jrbarch/)
 * (@jrbarch)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/htaccess-priority/#post-14745606)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-conditional-post-restrictions.
   svg)
 * [Restrict Posts based on Conditions - Conditional Post Restrictions](https://wordpress.org/plugins/wp-conditional-post-restrictions/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-conditional-post-restrictions/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-conditional-post-restrictions/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-conditional-post-restrictions/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-conditional-post-restrictions/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [gjrbarch](https://wordpress.org/support/users/jrbarch/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/htaccess-priority/#post-14745606)
 * Status: resolved