Closed lukasholzer closed 6 years ago
Either rebuild from scratch (e.g. docker-compose down -v && docker-compose up -d
), or make sure you also go in and change the values of homeurl
and siteurl
in the options table.
This is by design of WordPress. Not a bug.
@dsifford Thx for your reply but they are changed to localhost:9000 – so when I go to the wordpress admin under general seetings: wp-admin/options-general.php
.
The WordPress Address (URL) and the Site Address (URL) are both on http://localhost:9000/
in the sql file they are with port 9000 as well:
...
(1, 'siteurl', 'http://localhost:9000', 'yes'),
...
(37, 'home', 'http://localhost:9000', 'yes'),
...
sorry I figured it out – It was a browser caching problem – the redirect was cached -.-
Thx for help!
Hey I have the problem, that when I change the port form 8080 to 9000 everything works as fine – till to the moment when I open the browser and want to visit the url:
http://localhost:9000
Then I get redirected tohttp://localhost:8080
and no page is loaded.But when I visit:
http://localhost:9000/wp-admin
i can log into wordpress and edit everything… The problem is that the pages could only be visited through the preview url like:http://localhost:9000/?preview_id=7&preview_nonce=bb79fa8833&preview=true
docker-compose.yml
docker-compose up
outputwhen I open
localhost:9000
in the browser it redirects tolocalhost:8080
and nothing is going to be logged – but when I openlocalhost:9000/wp-admin
I get the following log and everything works: