admin管理员组

文章数量:1122846

I'm currently running a blog page for our company that utilizes Wordpress. The blog was created after we finished working on our official company website, which utilizes a different domain.

Here's the situation summed up:

  1. Blog created through Wordpress, using the domain name.blog
  2. Company website created by developers (Google Cloud), using the domain named.do

We were hoping if there is a way to migrate our blog (name.blog) to our main company website (name.do) as a subdomain/subdirectory (e.g. name.do/blog).

Extra notes:

  • I didn't set up any third-party hosting services when creating this wordpress site. Till this day, I'm not aware of any hosting services that I'm using for the blog.
  • Our company website is hosted on Google Cloud, and is generally managed by our software developers

Any comments or help would be greatly appreciated!

Thanks.

I'm currently running a blog page for our company that utilizes Wordpress. The blog was created after we finished working on our official company website, which utilizes a different domain.

Here's the situation summed up:

  1. Blog created through Wordpress, using the domain name.blog
  2. Company website created by developers (Google Cloud), using the domain named.do

We were hoping if there is a way to migrate our blog (name.blog) to our main company website (name.do) as a subdomain/subdirectory (e.g. name.do/blog).

Extra notes:

  • I didn't set up any third-party hosting services when creating this wordpress site. Till this day, I'm not aware of any hosting services that I'm using for the blog.
  • Our company website is hosted on Google Cloud, and is generally managed by our software developers

Any comments or help would be greatly appreciated!

Thanks.

Share Improve this question asked Mar 18, 2022 at 8:00 KnowledgeWorkerKnowledgeWorker 1 4
  • Are both websites WordPress website or just one? If both, you can enable the multisite feature and just export all your blog posts and import them in your main WordPress installation. – DeltaG Commented Mar 18, 2022 at 8:40
  • Well the website has to be hosted somewhere, and you're going to need to found out where or it's not going to be possible to move it. When it comes to moving it, there's documentation for that here: wordpress.org/support/article/moving-wordpress/… The full process will depend entirely on how the Google Cloud website is built and managed, so you're not going to get much help here (unless it's also WordPress). – Jacob Peattie Commented Mar 18, 2022 at 9:04
  • The company website is not wordpress - it's coded manually by our developers and is hosted on Google Cloud. The blog website is wordpress. Would I have to find information on Google Cloud's website? – KnowledgeWorker Commented Mar 18, 2022 at 9:30
  • Yes. A “Google Cloud hosted website” could be literally anything, so you’re going to need to ask the people who built the company website. This isn’t something anyone here is going to be able to help with. – Jacob Peattie Commented Mar 18, 2022 at 10:02
Add a comment  | 

1 Answer 1

Reset to default 0

What you need is a "reverse proxy" that serves name.blog under named.do/blog.

In other words, you keep running Wordpress on name.blog and you also do all admin/content tasks via name.blog. You use robots.txt to prevent Google from indexing name.blog. Then when someone opens named.do/blog/a-post, the reverse proxy fetches name.blog/a-post and serves it to the browser. Make sure to also update Site Address to named.do/blog so that the URLs that Wordpress generates match the proxied URL.

For the reverse proxy part, you have two options. Self-hosting or a hosted service.

For self-hosting, you need to install it where your main website is hosted, which is Google Cloud in your case. There are multiple options, the most popular being Nginx, Apache and Caddy.

For hosted options, search the internet for "hosted reverse proxy" or "no-code reverse proxy" and similar, I don't want to paste promotional links here.

本文标签: migrationIs there a way to migrate my wordpress blog to another website that uses a different domain