Title: htaccess issue
Last modified: August 31, 2016

---

# htaccess issue

 *  [Chad](https://wordpress.org/support/users/chadi/)
 * (@chadi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-issue-20/)
 * I’m having a very odd issue with password protected directories. I cannot access
   my WHMCS admin panel via mobile Safari (page not found) or my affiliate script
   admin panel, but the very exact links works on desktop within my whitelisted 
   IP. It should prompt for user/pw login external of the whitelisted IP and has
   always worked before. I found out the WP htaccess rules is the cause, but I don’t
   know what the workaround is. If I remove the code, my pages in WP all show 404.
 * This is the htaccess in root WP install:
 *     ```
       # BEGIN WordPress
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       # END WordPress
       ```
   
 * If I comment this section out you, the htaccess will properly prompt for the 
   login details.
 * The rule is forcing the loading of index.php when I navigate to any URL under
   my domain.
 * When you visit [https://www.mydomain.com/billing/adminfolder/](https://www.mydomain.com/billing/adminfolder/)
   from a none white listed IP the .htaccess forces to try and find an index.php
   instead of loading the password protection file at /home/xxxxxx/.htpasswds/public_html/
   billing/adminfolder/passwd
 * This is the one in the admin billing folder:
 *     ```
       AuthType Basic
       AuthName "SOMEUSER"
       AuthUserFile "/home/xxxxxx/.htpasswds/public_html/billing/adminfolder/passwd"
       require valid-user
       Satisfy Any
       order deny,allow
       deny from all
       Allow from xxx.xxx.xxx.xxx
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [neotechnomad](https://wordpress.org/support/users/neotechnomad/)
 * (@neotechnomad)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-issue-20/#post-7037981)
 * Compare your WordPress htaccess to this: [https://codex.wordpress.org/htaccess](https://codex.wordpress.org/htaccess)
 *  Thread Starter [Chad](https://wordpress.org/support/users/chadi/)
 * (@chadi)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-issue-20/#post-7037983)
 * Thanks. I updated it with that code but still no fix unfortunately.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘htaccess issue’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Chad](https://wordpress.org/support/users/chadi/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-issue-20/#post-7037983)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
