wordpress redirects to login page on first access for existing site


I have downloaded wp-content and re-created MySql db from a dump provided by my hosting.
By task is to run WordPress locally to reproduce all steps on how to set it up so that we can deploy it in a different setting.
Everything works fine, but what I’ve noticed is that on first attempt to access localhost:8000(port mapping from docker-compose), I’m always redirected to a login page. That allows to log into admin and after that I can freely access localhost:8000 and there’s no more redirecting. Even when I access the site from a different browser or in anonymous/incognito mode.

I wonder if it’s expected behaviour and if it can be somehow avoided? What is I redeploy my website and some site user access it first? I don’t want them redirected to login page.

yuranos 2 months 0 Answers 11 views 0

Leave an answer