Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to configure WordPress at mainsite.com/blog when it's really at blog.mainsite.com for SEO ?
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.
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.×