Webinoly is just the perfect tool for NGINX experts. Give it a try!
0 votes
1.3k views
by Rookie
Hi all,

After I enabled HTTP Auth to protect wp-admin area, ever time when I try to login to my WordPress sites, it automatically redirect to wp-login.php page. I face this issue only on desktop, but on Android mobile there's no such a issue.

Thanks in advance.
by

I think it's a cookie error, add some of the code below to the wp-config.php file to handle this

define(‘ADMIN_COOKIE_PATH’, ‘/’);

define(‘COOKIE_DOMAIN’, ”);

define(‘COOKIEPATH’, ”);

define(‘SITECOOKIEPATH’, ”);

Clear OPcache and try agan

1 Answer

0 votes
by Expert
Please, try different browsers, incognito mode, etc. maybe you are just having browser cache issues and it's not related with your server.
by
I am also facing the same problem.

Whenever a user click on logout It's asking for httpauth username and password. How can I manage this. URL hitting while clicking on Logout.

https://example.com/wp-login.php?action=logout&redirect_to=https%3A%2F%2Fexample.com%2Fmy-account%2F&_wpnonce=fae7bffae8
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...