如何将 wordpress 站点映射或复制到现有站点路径中的子文件夹? [英] How to map or copy a wordpress site to a subfolder in an existing site's route?

查看:52
本文介绍了如何将 wordpress 站点映射或复制到现有站点路径中的子文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Wordpress 博客 (blog.xxx.com).我有一个托管在 aws 上的 nuxt 个人网站 yyy.com.

I have a Wordpress blog (blog.xxx.com). I have a nuxt personal website yyy.com which is hosted on aws.

现在我希望将 Wordpress 博客 (blog.xxx.com) 映射或迁移到我的个人网站 (yyy.com/blog).

Now I wish to map or migrate the Wordpress blog (blog.xxx.com) to my personal site (yyy.com/blog).

我们怎样才能做到这一点?yyy.com 应该会显示我的个人站点,而 yyy.com/blog 应该会带你到我的博客.

How can we achieve this? yyy.com should show my personal site and yyy.com/blog should take you to my blog.

我可以在 Wordpress 中进行配置吗?或者我还能做些什么来实现这一点?

Can I configure this in Wordpress or what else can I do to achieve this?

我尝试将其映射到新域,但我不确定如何映射到特定路由并在访问 (yyy.com/blog/{blog-name}.

I tried mapping it to a new domain, but I’m not sure how to map to a particular route and get it to work when I visit (yyy.com/blog/{blog-name}.

推荐答案

是的,您可以在主网站的子文件夹中设置 WP 网站.我不建议手动进行,太多可能会出错.使用 插件,例如 Duplicator - 使用起来非常简单:

Yes, you can set up a WP site in a subfolder of your main website. I don't recommend doing it manually, too much can go wrong. Use a plugin such as Duplicator - it's so simple to use:

  1. 将其安装在站点以进行复制并构建一个包 - 这会将您的整个网站打包到一个 zip 文件中
  2. 将此 ZIP 文件和 installer.php 复制到主机上的主机新位置(例如 yyy.com/blog)
  3. 创建一个新的空数据库
  4. 运行安装程序向导并确保新设置中的 URL 为 https://www.yyy.com/blog
  1. Install it on the site to copy and build a package - this packages your entire website into a single zip file
  2. Copy this ZIP file and installer.php to the the hosting new location on your hosting (e.g. yyy.com/blog)
  3. Create a new empty database
  4. Run the installer wizard and make sure the URL in the new settings is https://www.yyy.com/blog

就是这样!

您可以设置整个站点并只需几分钟即可完美运行!它甚至可以正确设置 .htaccess.

You can have the entire site set up & running perfectly in just minutes! it will even set up .htaccess correctly.

不再需要设置数据库、更改数据库中的 url、404 错误、断开的链接、断开的图像等.手动移动 Wordpress 站点可能会很棘手,您可能会浪费数小时来尝试解决问题.甚至代理机构也使用插件来避免这些问题.

No more setting up the database, changing urls in the database, 404 errors, broken links, broken images, etc. Moving a Wordpress site manually can be tricky and you can waste hours trying to fix the issues. Even agencies use a plugin to avoid the problems.

这篇关于如何将 wordpress 站点映射或复制到现有站点路径中的子文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆