建立一个新网站而不影响当前网站(wordpress)直到完成? [英] Building a new website without affecting the current website (wordpress) until finished?

查看:31
本文介绍了建立一个新网站而不影响当前网站(wordpress)直到完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

建立一个新网站而不影响当前网站(wordpress)直到完成?关注google网页爬虫、seo、ssl证书、wordpress config等

Building a new website without affecting the current website (wordpress) until finished? Concerned about google web crawling, seo, ssl certificates, wordpress config, etc.

有人建议我创建一个新的子域并在那里构建新网站,但我对这种方法感到担忧.在新创建的子域上构建新站点 (wordpress) 后,您如何将主域重定向到该子域而不破坏 google 的网络抓取或 SSL 证书或其他任何内容?

I was advised to create a new subdomain and build the new website there but I have concerns about this approach. After your build your new site (wordpress) on the newly created subdomain how do you redirect the main domain to that subdomain and not break google's web crawling or SSL certificates or anything else?

推荐答案

与当前站点分开构建和测试始终是最好的方法.如果可能,最好使用单独的开发环境.这也让您可以在未来测试升级和更改,然后再在实时站点上进行升级和更改,以免发生错误.

Building and testing separately from the current site is always the best approach. A separate development environment is always preferable, if possible. This also allows you to test upgrades and changes in future before making them on the live site and risking an error.

无论您是否有单独的环境,有两种方法可以将站点与当前站点分开构建:

Whether you have a separate environment or not, there are 2 ways you can build the site separately from the current site:

1.在单独的位置构建,然后在准备好后将安装迁移到当前主机.

这是一种常见的方法,但如果您尝试手动执行它会非常棘手 - 这里的一个常见问题是如何在手动迁移后修复损坏的站点.

This is a common approach but it is quite tricky if you try to do it manually - a common question here is how to fix a broken site after a manual migration.

我的建议是使用专为您设计的插件.您可以在几分钟内让网站完美地移动和运行,而没有任何麻烦.我使用免费的 Duplicator 插件,但还有其他插件.

My recommendation is to use a plugin that is designed to do it all for you. You can have the site moved and running perfectly in minutes without all the hassle. I use the free Duplicator plugin, but there are others.

了解如何快速迁移 Wordpress 站点 4简单的步骤

2.在当前网站的一个子文件夹中构建并切换到从根域运行

另一种选择是在子文件夹中构建它(子域不适用于这种方法).准备就绪后,只需执行几个步骤即可使其从根域运行而无需移动任何内容.

An alternative option is to build it in a sub folder (a subdomain will not work for this approach). When you're ready, it just takes a few steps to make it run from the root domain without moving anything.

请注意,这是您的实时站点,因此您不会将其作为副本用于将来测试升级.

Note that this is then your live site, so you don't have this as a copy for testing upgrades in future.

查看如何设置安装在子文件夹中的 WP以便它从根域运行

最后 - 无论您采用哪种方法,如果您的新网址与当前网站不同,您应该设置 301 重定向,以便您的用户和 Google 都可以找到相应的页面,但它不会不会影响您的 Google 排名.

Finally - whichever approach you take, if your new urls are different from the current site, you should set up 301 redirects so that both your users and Google can find the corresponding pages and it doesn't hurt your Google ranking.

这篇关于建立一个新网站而不影响当前网站(wordpress)直到完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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