You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Redirect Loop when custom domain name is used. #22
First of all thanks for a great starter kit.
The issue appears when a custom URL is used in "create-wp-react-app create-workspace" wizard
It can be fixed by changing "siteurl" and "home" option in wp_options table to the custom url entered during workspace creation.
wp --allow-root config set SCRIPT_DEBUG true --raw
wp --allow-root config set FS_METHOD direct # see https://git.io/fj4IK, https://git.io/fj4Ii
test -f "/scripts/startup.sql"&& wp --allow-root db import /scripts/startup.sql
fi
Inside this if statement the WordPress instance gets installed. Usually, the wp core install command makes sure the options siteurl and home are set correctly. Perhaps you can figure this out and open a PR. 🙂
Activity
matzeeable commentedon Mar 3, 2020
Hi!
Thanks for your issue report. What do you mean exactly? How does your command look like exactly?
themeszone commentedon Mar 3, 2020
While creating a new workspace 2nd prompt asks for URL that should be used for WordPress development:
see screenshot below:
https://www.evernote.com/l/ACfWwTRiX7dBlLPsTPAwsBrIXatf0sHiBrw
After the setup is finished and I run "yarn docker:start" and then I go to the URL provided I get a Redirect Loop.
To fix that I have to open phpMyAdmin and change siteurl and home option in wp_options table to the URL provided
matzeeable commentedon Mar 25, 2020
Hi @themeszone !
Sorry for the late response. Can you please do a test for me so I can ensure where I have to look because I can not reprocedure the issue:
yarn docker:purge; it completely removes the WP instancedocker:startwp-react-starter/devops/scripts/container-wordpress-command.sh
Lines 32 to 46 in 05d325e
Inside this
ifstatement the WordPress instance gets installed. Usually, thewp core installcommand makes sure the optionssiteurlandhomeare set correctly. Perhaps you can figure this out and open a PR. 🙂