Apache protection strange behavior

Discussion in 'General' started by Jimmy-Parr, Aug 4, 2019.

  1. Jimmy-Parr

    Jimmy-Parr New Member

    i have multiple client with apache files protection .htaccess ex:
    <Files wp-login.php>
    AuthType Basic
    AuthName "By Invitation Only"
    AuthBasicProvider file
    AuthUserFile /someplace/.htpasswd
    Require valid-user
    </Files>

    all clients works fine ! except one client !
    apache protection work fine on sub domain /subdomain.domain.com/ : /othersubdomain.domain.com/
    but not workin on domain ! /
    even if i block a file it's not working, it will only ignore the file and show page does not exist
    what ever files i try to block on main domain i get too many redirect
    any clues ?

    found the problem but down know how to fix it: when .htacces have
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    problem come !
    so i guest wordpress is broken !
     
    Last edited: Aug 4, 2019

Share This Page