• Resolved toniupper

    (@toniupper)


    HI,

    I have basic auth in my .htaccess that protect a custom login URL, but when a customer tries to log out of my-account page a popup appears asking them to “authorize” (same for login)!
    Is it possible to set up auth in my site.com/custom-login (login URL) and allow the customer to log out normally?

    this my code in .htaccess

    <FilesMatch "custom-login">
         AuthName "Authorized Only"
         AuthType Basic
         AuthUserFile /doc/www/.htwpadmin
         require valid-user
    </FilesMatch>
Viewing 1 replies (of 1 total)
  • Anonymous User

    (@anonymized-20801613)

    You would like to add your log-out link not to be “Authorized Only”?

    <FilesMatch "custom-login">
        AuthName "Authorized Only"
        AuthType Basic
        AuthUserFile /doc/www/.htwpadmin
        require valid-user
    </FilesMatch>
    
    <Files "your-logout-url">
        Satisfy any
    </Files>
    
    Replace "your-logout-url" with the actual URL of your logout page.
    
    Code was provided by ChatGPT.
Viewing 1 replies (of 1 total)
  • The topic ‘Basic Auth .htaccess problem with logout woocommerce’ is closed to new replies.