Redirect Loop when custom domain name is used.
Hello Guys
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.
Hi!
Thanks for your issue report. What do you mean exactly? How does your command look like exactly?
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
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:
- Run
yarn docker:purge; it completely removes the WP instance - Run
docker:start - Check if issues happens again
https://github.com/devowlio/wp-react-starter/blob/05d325ef6808a4143097439e73345d7c9b2bf364/devops/scripts/container-wordpress-command.sh#L32-L46
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. 🙂