We do not wish to host our WordPress server on our main website. WordPress is a past/present/future trainwreck and I don’t want it causing problems with our main website. It needs its own Droplet at blog.mainwebsite.com
We can easily use Nginx proxy-pass to pass the user from mainwebsite.com/blog to blog.mainwebsite.com. This looks seamless to the user, and to Google for SEO on the address bar. Unfortunately, once any link on the WordPress install is clicked the address link is sent back to blog.mainwebsite.com. The reason for this is, the WordPress Address and Site Address config settings are set as blog.mainwesbite.com.
I tried changing WordPress Address and Site Address config settings to mainwebsite.com/blog but this result in errors.
I’m unsure what settings need to be changed on my WordPress config settings to make this possible. Anybody do this before?
Any help is much appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!