两个wordpress要什么配置 wordpress和wix_python


wix log

Looking to switch from Wix to WordPress?

想要从Wix切换到WordPress?

Wix is a popular website builder that lets you create a simple website, fast. However, many Wix users soon realize that their options are limited and adding extra features can become quite expensive.

Wix是受欢迎的网站构建器 ,它使您可以快速创建一个简单的网站。 但是,许多Wix用户很快意识到他们的选择是有限的,添加额外的功能可能会变得非常昂贵。

If you want more features and flexibility without the high costs, then switching to self-hosted WordPress is the best choice. WordPress powers over 32% of all websites on the internet because it’s extremely powerful. In this article, we will show you how to properly move from Wix to WordPress and grow your website with complete freedom.

如果您想在不增加成本的情况下获得更多功能和灵活性,那么切换到自托管WordPress是最佳选择。 WordPress功能强大,可为Internet上所有网站的32%以上提供支持。 在本文中,我们将向您展示如何正确地从Wix迁移到WordPress,以及如何完全自由地发展网站。


两个wordpress要什么配置 wordpress和wix_两个wordpress要什么配置_02


After reviewing various different ways to move from Wix to WordPress, we believe the easiest method is by importing your blog posts via RSS.

在回顾了从Wix到WordPress的各种不同方式之后,我们认为最简单的方法是通过RSS导入您的博客文章。

In this step by step guide, we will walk you through the process of transferring your Wix website to WordPress. Depending on how many pages you have on your Wix site, the migration can take upto an hour.

在本分步指南中,我们将引导您完成将Wix网站转移到WordPress的过程。 根据您Wix站点上有多少页,迁移过程最多可能需要一个小时。

Here are the steps to migrate from Wix to WordPress:

这是从Wix迁移到WordPress步骤

  1. Sign up for WordPress web hosting
  2. Setup your new WordPress site
  3. Customize your site’s style and appearance
  4. Import your blog posts via RSS
  5. Convert your Wix pages to WordPress
  6. Create your main navigational menu
  7. Redirect Wix to WordPress

Ready to switch from Wix to WordPress? Let’s get started.

准备从Wix切换到WordPress? 让我们开始吧。

第1步:注册WordPress虚拟主机 (Step 1: Signup for WordPress Web Hosting)

To start a WordPress blog, the first thing you’ll need is a web hosting account for your website.

要创建WordPress博客 ,您需要做的第一件事就是为您的网站建立一个虚拟主机帐户。

Web hosting is your website’s home on the internet. This is where all of your files and data is stored.

虚拟主机是您的网站在互联网上的家。 这是所有文件和数据的存储位置。

You will also need a domain name (such as www.yoursite.com). This is your website’s address on the internet.

您还将需要一个域名 (例如www.yoursite.com)。 这是您网站在互联网上的地址。

When you use Wix, they host your website for you which is also the reason why it’s quite limited. On the other hand, WordPress is a free software, so you’ll need a place to install it. That’s why you need to purchase web hosting and a domain name.

当您使用Wix时,他们会为您托管网站,这也是网站十分有限的原因。 另一方面,WordPress是一个免费软件,因此您需要一个安装位置。 因此,您需要购买虚拟主机和域名。

We highly recommend that you use Bluehost because they are an official WordPress.org recommended hosting provider.

我们强烈建议您使用Bluehost,因为它们是WordPress.org推荐的官方托管服务提供商。

They have agreed to give WPBeginner readers a free domain and over 60% off discount on web hosting when you use our special Bluehost coupon code.

他们同意为WPBeginner读者提供一个免费域名,并在您使用我们特殊的Bluehost优惠券代码时提供60%以上的网络托管折扣 。

→ Click here to Claim this Exclusive Bluehost offer ←

→单击此处声明此Bluehost独家优惠←

If you want to look at more options, then we have a list of the best WordPress hosting providers that you can choose from.

如果您想查看更多选项,那么我们为您提供了最佳的WordPress托管提供商列表,您可以从中选择。

Some other companies that we recommend are SiteGround and HostGator.

我们推荐的其他一些公司是SiteGround和HostGator 。

In this tutorial, we’ll use Bluehost for screenshot and examples.

在本教程中,我们将使用Bluehost截屏和示例。

If you’ve already registered a domain name with Wix, that’s no problem. When signing up with Bluehost, you can enter your existing domain under the “I have a domain name” option.

如果您已经使用Wix注册了域名,那没问题。 使用Bluehost注册时,您可以在“我有域名”选项下输入现有域。


两个wordpress要什么配置 wordpress和wix_python_03


Later on in this guide, we’ll walk you through how to transfer your domain when your new WordPress site is ready.

在本指南的稍后部分,我们将指导您完成新的WordPress网站准备就绪后如何转移域。

(Step 2: Setup Your New WordPress Site)

After purchasing your new hosting plan, you’ll need to install and setup WordPress.

购买新的托管计划后,您需要安装和设置WordPress。

If you signed up with Bluehost, then they automatically install WordPress for you, and you can simply login to your WordPress dashboard from your hosting account.

如果您注册了Bluehost,则他们会自动为您安装WordPress,您只需从托管帐户登录WordPress仪表板即可。

Upon login, you will see your WordPress admin dashboard:

登录后,您将看到WordPress管理仪表盘:


两个wordpress要什么配置 wordpress和wix_wordpress_04


All other WordPress hosting companies also offer 1-click WordPress installers from their hosting dashboard. If you need help installing WordPress, then you can refer to our step by step guide on how to install WordPress for beginners.

所有其他WordPress托管公司还从托管仪表板提供一键式WordPress安装程序。 如果您需要安装WordPress的帮助,则可以参考我们的入门指南, 了解如何为初学者安装WordPress 。

Once you login to WordPress admin area, it’s a good idea to set your WordPress permalinks.

登录WordPress管理区域后,最好设置WordPress永久链接 。

Your permalink settings will determine the address of each blog post. For example, instead of publishing a blog post to:

您的永久链接设置将确定每篇博客文章的地址。 例如,不是将博客文章发布到:

www.yourblog.com/2017/10/blog-post-title

www.yourblog.com/2017/10/blog-post-title

You can publish it to:

您可以将其发布到:

www.yourblog.com/blog-post-title.

www.yourblog.com/blog-post-title

You can change your permalink settings by navigating to Settings » Permalinks in your WordPress dashboard. Once you have selected the structure you want, click on the Save Changes button at the bottom.

您可以通过导航到WordPress仪表板中的“设置”»“永久链接”来更改永久链接设置。 选择所需的结构后,单击底部的“ 保存更改”按钮。


两个wordpress要什么配置 wordpress和wix_wordpress_05


For more details about permalinks, you can check out our post on SEO-friendly URL structures in WordPress.

有关永久链接的更多详细信息,您可以查看我们有关WordPress中SEO友好URL结构的文章 。

(Step 3: Customize Your Site’s Design)

Next, you should customize the appearance of your website. It’s easy to do that using WordPress themes.

接下来,您应该自定义网站的外观。 使用WordPress主题很容易做到这一点。

WordPress themes are similar to Wix templates, they control the appearance and display of your WordPress website.

WordPress主题类似于Wix模板,它们控制WordPress网站的外观和显示。

There are thousands of free WordPress themes available for you to use. Some themes are very basic and minimalist, while others will add a lot of new features to your site.

有成千上万的免费WordPress主题供您使用。 有些主题非常基本且极简,而另一些主题则会为您的网站添加许多新功能。


两个wordpress要什么配置 wordpress和wix_python_06


As a WordPress beginner, you may want to start with a simple theme that’s easy to use. We have a list of recommended simple WordPress themes you can take a look at to get started.

作为WordPress初学者,您可能想从一个易于使用的简单主题开始。 我们提供了推荐的简单WordPress主题列表,您可以查看这些主题以开始使用。

Wondering how to decide on a theme? You can check out our article on selecting the perfect WordPress theme for tips and advice.

想知道如何确定主题? 您可以查看有关选择完美的WordPress主题的文章, 以获取提示和建议。

Once you have found a theme you like, you can install it by following our guide on how to install a WordPress theme.

找到喜欢的主题后,可以按照关于如何安装WordPress主题的指南进行安装 。

Remember, you can easily change your theme in the future, so it’s important that you don’t spend too much time on this step.

请记住,您将来可以轻松更改主题,因此在此步骤上不要花费太多时间很重要。

You can even use the default WordPress theme and start with the migration process. Because the most important part is moving all of your content from Wix to WordPress.

您甚至可以使用默认的WordPress主题并从迁移过程开始。 因为最重要的部分是将所有内容从Wix移到WordPress。

(Step 4: Import Your Wix Blog Posts to WordPress)

In this step, we’ll transfer your Wix blog posts over to your new WordPress site.

在此步骤中,我们会将您的Wix博客帖子转移到您的新WordPress网站。

Wix is a closed platform, and they don’t provide an easy way for users to migrate their content away from Wix.

Wix是一个封闭的平台,它们不能为用户提供一种简便的方法来将其内容从Wix迁移出去。

But we can still automate the process by importing your Wix RSS feed, instead of recreating each blog post manually.

但是,我们仍然可以通过导入Wix RSS feed来自动化该过程,而不是手动重新创建每个博客文章。

To get started, you’ll need to download your Wix RSS file.

首先,您需要下载Wix RSS文件。

You can locate the file by adding /feed.xml or /blog-feed.xml to your Wix website URL.

您可以通过将/feed.xml/blog-feed.xml添加到Wix网站URL来找到文件。

If you don’t have a custom domain with Wix, then you can find your RSS feed at username.wixsite.com/blogname/feed.xml or username.wixsite.com/blogname/blog-feed.xml, where “username” is your Wix username and “blogname” is the name of your blog.

如果您没有使用Wix的自定义域,则可以在username.wixsite.com/blogname/feed.xmlusername.wixsite.com/blogname/blog-feed.xml找到RSS提要,其中“用户名”是您的Wix用户名,“ blogname”是您博客的名称。

If you have a custom domain such as www.yourwixblog.com, then you can find your RSS feed at www.yourwixblog.com/feed.xml or www.yourwixblog.com/blog-feed.xml.

如果您拥有自定义域,例如www.yourwixblog.com ,则可以在www.yourwixblog.com/feed.xmlwww.yourwixblog.com/blog-feed.xml找到RSS源。

After navigating to the proper URL, you should see a page full of code.

导航到正确的URL后,您应该看到一个充满代码的页面。

Go ahead and right-click anywhere on the page and click Save As to save the file in your computer.

继续并右键单击页面上的任意位置,然后单击另存为将文件保存在计算机中。


两个wordpress要什么配置 wordpress和wix_wordpress_07


Now that you have your RSS file, you can log in to your WordPress dashboard and click on Tools » Import.

有了RSS文件后,您可以登录WordPress仪表板并单击Tools»Import

Next, click the Install Now link under the RSS heading.

接下来,单击RSS标题下的立即安装链接。


两个wordpress要什么配置 wordpress和wix_大数据_08


After a few seconds, you’ll see a link at the top of the page to Run Importer. Go ahead and click the link.

几秒钟后,您将在页面顶部看到一个指向Run Importer的链接 。 继续并单击链接。

Next, you need to click the Choose File button and select the feed.xml file that saved to your computer. Once selected, you can click the Upload file and import button.

接下来,您需要单击“ 选择文件”按钮,然后选择保存到您的计算机的feed.xml文件。 选择后,您可以单击“ 上传文件并导入”按钮。


两个wordpress要什么配置 wordpress和wix_wordpress_09


If you have a lot of blog posts to import, then it can take several minutes to import them all.

如果您有很多博客文章要导入,那么可能要花几分钟才能全部导入。

When it’s done, you’ll see a confirmation message.

完成后,您会看到一条确认消息。


两个wordpress要什么配置 wordpress和wix_java_10


To check on your blog posts and make sure they were exported from Wix correctly, you can navigate to Posts » All Posts and click View underneath each post.

要检查您的博客文章并确保它们已正确地从Wix导出,您可以导航至文章»所有文章 ,然后单击每个文章下方的查看


两个wordpress要什么配置 wordpress和wix_java_11


At this point, the content of your blog posts has been transferred, but there’s one problem: any images in your post are still hosted with Wix.

至此,博客文章的内容已经转移,但是存在一个问题:文章中的任何图像仍由Wix托管。

Luckily, there’s an easy way to fix this and move your images over to WordPress.

幸运的是,有一种简单的方法可以解决此问题并将图像移至WordPress。

All you need to do is install and activate the Auto Upload Images plugin.

您需要做的就是安装并激活“ 自动上传图片”插件。

Plugins are like apps for WordPress that allow you to add new features. We have a step by step guide on how to install a WordPress plugin.

插件就像WordPress的应用程序一样,可让您添加新功能。 我们提供了有关如何安装WordPress插件的分步指南。

After installing and activating the plugin, you’ll need to re-save each post that contains images, and the plugin will import images inside it.

安装并激活插件后,您需要重新保存每个包含图像的帖子,并且插件将在其中导入图像。

It would be time-consuming to edit each post one by one, but we have a handy trick that you can use to quickly re-save all WordPress posts at once.

逐个编辑每个帖子将很耗时,但是我们有一个方便的技巧,您可以使用该技巧快速一次重新保存所有WordPress帖子。

Simply go to Posts » All Posts page and then click on the Screen Options button at the top.

只需转到帖子»所有帖子页面,然后单击顶部的屏幕选项按钮。


两个wordpress要什么配置 wordpress和wix_两个wordpress要什么配置_12


You need to increase the number to 999 in the ‘Number of items per page field’ field and click on the Apply button.

您需要在“每页项数”字段中将数字增加到999 ,然后单击“应用”按钮。

WordPress will reload the page, and this time it will show 999 posts at a time.

WordPress将重新加载页面,这一次它将一次显示999个帖子。

Next, you need to select all your posts and then select Edit under the bulk actions menu.

接下来,您需要选择所有帖子,然后在批量操作菜单下选择编辑。


两个wordpress要什么配置 wordpress和wix_python_13


After that, you need to click the Apply button. WordPress will show you a quick edit box with all selected posts. You just need to click on the Update button, and WordPress will update all your posts.

之后,您需要单击“应用”按钮。 WordPress将显示一个带有所有选定帖子的快速编辑框。 您只需要单击“更新”按钮,WordPress就会更新您的所有帖子。

See our guide on importing external images in WordPress for more detailed instructions.

有关更多详细说明,请参阅我们的有关在WordPress中导入外部图像的指南。

(Step 5: Import Your Wix Pages to WordPress)

After you have imported your blog post, next we’ll need to transfer your Wix pages over to your WordPress site.

导入博客文章后,接下来我们需要将Wix页面转移到WordPress网站。

Wix doesn’t provide any automated way to do this, so we’ll have to recreate each page in WordPress one by one.

Wix没有提供任何自动化的方法来执行此操作,因此我们必须在WordPress中一个接一个地重新创建每个页面。

First, you can navigate to the Wix page you want to transfer to WordPress. Highlight all the content (except for the page title). Then you can right click and click on Copy.

首先,您可以导航到要转移到WordPress的Wix页面。 突出显示所有内容(页面标题除外)。 然后,您可以右键单击并单击复制


两个wordpress要什么配置 wordpress和wix_大数据_14


After that, you need to login to your WordPress dashboard and navigate to Pages » Add New to recreate the page. At the top of the page, you can type in the page title. Then you can right-click and and click on Paste to recreate the content.

之后,您需要登录WordPress仪表板并导航至Pages»Add New来重新创建页面。 在页面顶部,您可以输入页面标题。 然后,您可以单击鼠标右键,然后单击“ 粘贴”以重新创建内容。


两个wordpress要什么配置 wordpress和wix_java_15


For help with styling your pages, you can check out our article on add new post or page in WordPress.

要获得页面样式的帮助,您可以查看有关在WordPress中添加新帖子或页面的文章。

When you’re finished styling your page, you can click the Publish button to publish your page on your new WordPress site.

完成页面样式后,可以单击“ 发布”按钮以在新的WordPress网站上发布页面。


两个wordpress要什么配置 wordpress和wix_大数据_16


While you can follow the above method for all text based pages, it won’t work for certain pages like your contact page.

虽然您可以对所有基于文本的页面使用上述方法,但不适用于某些页面(例如您的联系人页面)。

You’ll need to install a contact form plugin like WPForms to create a contact page. We have a step by step guide on how to create a simple contact form.

您需要安装联系表单插件(如WPForms)才能创建联系页面。 我们提供了有关如何创建简单联系表的分步指南。

Now that you’ve converted all your content, it’s a good idea to carefully review your posts and pages to make sure everything is working right and looks the way it’s supposed to.

既然您已经转换了所有内容,那么最好仔细查看您的帖子和页面,以确保一切正常,并按照预期的方式运行。

(Step 6: Create Your Main Navigational Menu)

Next, you’ll want to make sure your visitors can easily navigate through your new website using your primary menu.

接下来,您需要确保访问者可以使用主菜单轻松浏览新网站。

You can create a navigational menu by going to Appearance » Menus. Type in a name for your menu, and click one of the Create Menu buttons.

您可以转到外观»菜单来创建导航菜单。 输入菜单名称,然后单击“ 创建菜单”按钮之一。


两个wordpress要什么配置 wordpress和wix_python_17


Next, you can select whichever pages you want to add to your main menu, and click the Add to Menu button. When you’ve added all the pages you want, select the menu position.

接下来,您可以选择要添加到主菜单的任何页面,然后单击“ 添加到菜单”按钮。 添加所需的所有页面后,选择菜单位置。

Finally, click the blue Save Menu button on the right.

最后,单击右侧的蓝色“ 保存菜单”按钮。


两个wordpress要什么配置 wordpress和wix_java_18


Now your menu has been created and is live on your website.

现在,您的菜单已创建并且可以在您的网站上使用。

(Step 7: Redirect Wix to WordPress)

Your new WordPress site is complete, and you’re ready to let your readers know about your move.

您的新WordPress网站已完成,您已经准备好让读者知道您的举动。

It’s important to not only announce your move to your readers but to setup proper redirection.

重要的是,不仅要向读者宣布您的举动,而且还要设置适当的重定向。

You want all visitors of your old site to land on exactly the same page on the new site. This will also let search engines know that your old site has moved to a new location.

您希望您的旧站点的所有访问者都完全落在新站点的同一页面上。 这还将使搜索引擎知道您的旧站点已移至新位置。

Note: You can only redirect users to your new WordPress site if you had a custom domain on Wix. Unfortunately, if you were using a wixsite subdomain, then you cannot redirect users to your WordPress site.

注意:如果您在Wix上具有自定义域,则只能将用户重定向到新的WordPress网站。 不幸的是,如果您使用的是wixsite子域,则无法将用户重定向到WordPress网站。

First you need to open a plain text editor like Notepad and paste this code:

首先,您需要打开一个纯文本编辑器(如记事本)并粘贴以下代码:

var hashesarr = { 
"#!about-us/c1it7":'/about/',
"#!contact/ce54":'/contact/',
"#!random-article/c1mz":'/random-article/'
 };

for (var hash in hashesarr) {
    var patt = new RegExp(hash);
    if (window.location.hash.match(patt) !== null) {
        window.location.href = hashesarr[hash];
    }
}

In this code we have added three example URLs in the following format:

在此代码中,我们以以下格式添加了三个示例URL:

"#!about-us/c1it7":'/about/',

"#!about-us/c1it7":'/about/',

The first part of the line looks for a string in the URL. This will be the URL your Wix users will be coming from. The second part in the line is the WordPress slug for the same page.

该行的第一部分在URL中查找字符串。 这将是您的Wix用户所来自的URL。 该行的第二部分是同一页面的WordPress插件。

Unfortunately, you will have to manually add each URL in this format. Once you are finished, you need to save this file as redirects.js.

不幸的是,您将必须以这种格式手动添加每个URL。 完成后,您需要将此文件另存为redirects.js

Next, you need to upload this file to your WordPress theme’s /js/ directory using an FTP client.

接下来,您需要使用FTP客户端将此文件上传到WordPress主题的/ js /目录。

If your theme does not have a /js/ directory, then you need to create one.

如果您的主题没有/ js /目录,则需要创建一个。

Now you need to edit your theme’s functions.php file and add this code at the bottom of the file:

现在,您需要编辑主题的functions.php文件,并将此代码添加到文件底部:

function wpb_wixjs () { 
wp_enqueue_script( 'wixredirect', get_stylesheet_directory_uri() . '/js/redirects.js', array(), '1.0.0', true);
} 
add_action('wp_enqueue_scripts', 'wpb_wixjs');

Don’t forget to save your changes.

不要忘记保存您的更改。

That’s all, you can now try visiting a URL from your old Wix site to see the redirect in action.

就是这样,您现在可以尝试从旧的Wix站点访问URL,以查看重定向的作用。

Note: These redirects will not redirect search engines and are not very SEO friendly.

注意:这些重定向不会重定向搜索引擎,也不是非常适合SEO。

Lastly, don’t forget to inform your readers of your new address. You can do this by announcing your move on social media, writing a blog post about it, and sending out a notice to your email newsletter.

最后,不要忘记将您的新地址告知读者。 为此,您可以宣布自己在社交媒体上的举动,撰写有关此话题的博客文章,并向您的电子邮件通讯发送通知。

(Step 8: Add Essential WordPress Plugins)

WordPress plugins allow you to add more features to your site. Plugins work like Wix apps. There are hundreds of plugins available, free and paid. You can check out our archive of articles about the best WordPress plugins if you’re not sure where to start.

WordPress插件可让您向网站添加更多功能。 插件的工作方式类似于Wix应用程序。 有成百上千的免费,付费插件。 如果不确定从哪里开始,可以查看有关最佳WordPress插件的文章存档。

We also have a list of the must have WordPress plugins for all websites.

我们还列出了所有网站都必须具有的WordPress插件 。

If you’re looking for a Wix style drag & drop page builder, then we recommend using one of these best drag & drop WordPress page builder plugins.

如果您正在寻找Wix样式的拖放页面构建器,那么我们建议使用以下最佳拖放WordPress页面构建器插件之一 。

That’s it! We hope this tutorial helped you switch from Wix to WordPress without a lot of hassle.

而已! 我们希望本教程可以帮助您轻松地从Wix切换到WordPress。

We would like to welcome you to the WordPress community. To get started with WordPress, please take a look at our beginner’s guide section and our WordPress beginner videos.

我们欢迎您加入WordPress社区。 要开始使用WordPress,请查看我们的初学者指南部分和WordPress初学者视频 。

If you have a friend still using Wix, then you can show them your new WordPress site and our comparison on WordPress vs Wix and convince them to switch over.

如果您有朋友仍在使用Wix,则可以向他们展示您的新WordPress网站以及我们在WordPress vs Wix上进行的比较,并说服他们进行切换。

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

如果您喜欢这篇文章,请订阅我们的YouTube频道 WordPress视频教程。 您也可以在Twitter和Facebook上找到我们。

翻译自: https://www.wpbeginner.com/wp-tutorials/how-to-properly-switch-from-wix-to-wordpress-step-by-step/

wix log