Tutorial Tutorial Developer Platform Developer Platform ~10 phút ~10 min Đồng bộ 2026-06-10 Synced 2026-06-10

Triển khai static WordPress site Deploy a static WordPress site

Hướng dẫn chi tiết đồng bộ từ docs Cloudflare — mỗi section có backlink tới đúng vị trí trên trang gốc. Detailed guide synced from Cloudflare docs — each section links to the matching anchor on the official page.

← Danh mục ← Catalog

Giải thích nhanh Quick context

Thuộc Developer Platform — thực hành triển khai code, API và dữ liệu trên edge/serverless. Tutorial «Triển khai static WordPress site» giúp bạn làm quen luồng triển khai thật — phù hợp đọc trước khi mở tài liệu gốc tiếng Anh. Đọc phần tóm tắt và lưu ý trước — sau đó mở docs gốc để copy lệnh và cấu hình chi tiết.

Learn how to deploy a static WordPress site using Cloudflare Pages.

Lưu ý trước khi làm Notes before you start

  • Đây là bản tóm tắt trên Orange Cloud Learning Hub — không thay thế tài liệu chính thức. This is a summary on Orange Cloud Learning Hub — it does not replace the official documentation.
  • Luôn mở liên kết «Tài liệu gốc» bên dưới khi cần lệnh CLI, snippet code và ảnh minh họa đầy đủ. Open the Official docs link below for CLI commands, code snippets, and full screenshots.
  • Cần tài khoản Cloudflare, Wrangler CLI và (thường) hoàn thành hướng dẫn Get started của Workers/Pages. Requires a Cloudflare account, Wrangler CLI, and (typically) completing the Workers/Pages Get started guide.
  • Docs Cloudflare cập nhật thường xuyên — đối chiếu ngày «Rà soát lần cuối» trên trang gốc khi triển khai production. Cloudflare docs change frequently — verify the Last reviewed date on the official page before production use.

Tài liệu gốc — rà soát lần cuối: about 3 years ago Official docs — last reviewed: about 3 years ago

Tổng quan Overview

Trong hướng dẫn này, bạn sẽ use a WordPress plugin, Simply Static ↗ , to convert your existing WordPress site to a static website deployed with Cloudflare Pages.

Read the "Overview" section below — open the official docs link for full screenshots and configuration tabs.

Mở section docs gốc ↗ Open source section ↗

In this guide, you will use a WordPress plugin, Simply Static ↗, to convert your existing WordPress site to a static website deployed with Cloudflare Pages.

Yêu cầu trước Prerequisites

Phần «Yêu cầu trước» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Prerequisites" section below — open the official docs link for full screenshots and configuration tabs.

Mở section docs gốc ↗ Open source section ↗

This guide assumes that you are:

  • The Administrator account on your WordPress site.
  • Able to install WordPress plugins on the site.

Setup Setup

Phần «Setup» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Setup" section below — open the official docs link for full screenshots and configuration tabs.

Mở section docs gốc ↗ Open source section ↗

To start, install the Simply Static ↗ plugin to export your WordPress site. In your WordPress dashboard, go to Plugins \> Add New.

Search for Simply Static and confirm that the resulting plugin that you will be installing matches the plugin below.

Select Install on the plugin. After it has finished installing, select Activate.

Export your WordPress site Export your WordPress site

Phần «Export your WordPress site» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Export your WordPress site" section below — open the official docs link for full screenshots and configuration tabs.

Mở section docs gốc ↗ Open source section ↗

After you have installed the plugin, go to your WordPress dashboard > Simply Static \> GENERATE STATIC FILES.

In the Activity Log, find the ZIP archive created message and select Click here to download to download your ZIP file.

Triển khai your WordPress site với Pages Deploy your WordPress site with Pages

Phần «Triển khai your WordPress site với Pages» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Deploy your WordPress site with Pages" section below — open the official docs link for full screenshots and configuration tabs.

Mở section docs gốc ↗ Open source section ↗

With your ZIP file downloaded, deploy your site to Pages:

  1. In the Cloudflare dashboard, go to the Workers & Pages page.

Go to Workers & Pages

  1. Select Create application \> Pages \> Use direct upload.
  2. Name your project, then select Create project.
  3. Drag and drop your ZIP file (or unzipped folder of assets) or select it from your computer.
  4. After your files have been uploaded, select Deploy site.

Your WordPress site will now be live on Pages.

Every time you make a change to your WordPress site, you will need to download a new ZIP file from the WordPress dashboard and redeploy to Cloudflare Pages. Automatic updates are not available with the free version of Simply Static.

Limitations Limitations

Phần «Limitations» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Limitations" section below — open the official docs link for full screenshots and configuration tabs.

Mở section docs gốc ↗ Open source section ↗

There are some features available in WordPress sites that will not be supported in a static site environment:

  • WordPress Forms.
  • WordPress Comments.
  • Any links to /wp-admin or similar internal WordPress routes.

Kết luận Conclusion

Phần «Kết luận» — đọc hướng dẫn bên dưới, dùng liên kết docs gốc để xem ảnh minh họa và tab cấu hình đầy đủ.

Read the "Conclusion" section below — open the official docs link for full screenshots and configuration tabs.

Mở section docs gốc ↗ Open source section ↗

By following this guide, you have successfully deployed a static version of your WordPress site to Cloudflare Pages.

With a static version of your site being served, you can:

  • Move your WordPress site to a custom domain or subdomain. Refer to Custom domains to learn more.
  • Run your WordPress instance locally, or put your WordPress site behind Cloudflare Access to only give access to your contributors. This has a significant effect on the number of attack vectors for your WordPress site and its content.
  • Downgrade your WordPress hosting plan to a cheaper plan. Because the memory and bandwidth requirements for your WordPress instance are now smaller, you can often host it on a cheaper plan, or moving to shared hosting.

Connect with the Cloudflare Developer community on Discord ↗ to ask questions and discuss the platform with other developers.

json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"item":{"@id":"/directory/","name":"Directory"}},{"@type":"ListItem","position":2,"item":{"@id":"/pages/","name":"Pages"}},{"@type":"ListItem","position":3,"item":{"@id":"/pages/how-to/","name":"How to"}},{"@type":"ListItem","position":4,"item":{"@id":"/pages/how-to/deploy-a-wordpress-site/","name":"Deploy a static WordPress site"}}]}

Liên kết liên quan (docs Cloudflare) Related links (Cloudflare docs)

Xem bản đầy đủ trên developers.cloudflare.com (ảnh, tab cấu hình). View the full guide on developers.cloudflare.com (images, config tabs).

Tài liệu gốc ↗ Official docs ↗