Roots Discourse

Err_too_many_redirects

I just installed a new bedrock project with composer, and setup my local environment.
I’m trying to run my project locally with: php -S 0.0.0.0:80 bedrock/web/index.php

This however redirects me to http://localhost:4081/wp/wp-admin/install.php and throws an ERR_TOO_MANY_REDIRECTS error.

What am I doing wrong?

How are you requesting that site? Are you using its localhost domain or its IP address (like 127.0.0.1)?
WordPress will redirect all requests to its primary domain.

Im using its localhost domain. I have setup a simple docker php container

My env is setup like this:

WP_ENV=‘development’
WP_HOME=‘http://localhost:4081
WP_SITEURL="${WP_HOME}/wp"
WP_DEBUG_LOG=/path/to/debug.log
WP_DEBUG=true

This topic was automatically closed after 42 days. New replies are no longer allowed.