🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Tutorial on Using Upyun to Speed Up WordPress Websites_New Plugin Version

WordPress OptimizationThere is a very obvious method to improve website loading speed, which is using CDN acceleration. Upyun is a service provider offering CDN acceleration. WordPress website administrators can obtain 10GB of cloud storage and 15GB/month of CDN acceleration traffic each month, supporting HTTPS acceleration. This article teaches you how to start using it from registration.Accelerating WordPress with Upyun

WordPress Website Upyun CDN Cloud Storage Acceleration Tutorial

The tutorial in this article usesUpyunCloud Storage comes withCDNfunctionality to host image files on Upyun to achieveDynamic and Static Separation Acceleration. You can also put the entire website on Upyun's CDN service, but it is recommended for novice users to start with the tutorial in this article and apply CDN to the whole site after becoming familiar.

Register Upyun Account

First, we need to register an Upyun account. After registration, complete real-name verification to receive a 61 CNY voucher.Registration Link What can the Upyun 61 CNY New User Voucher buy?? The one-month 61 CNY voucher from Upyun real-name verification is used to offset your Upyun service fees for that month. This means you can use this 61 CNY voucher to pay for any service provided by Upyun.

Get Upyun Free Traffic

Does Upyun still offer free traffic? The answer is yes.By default, Upyun only gives the 61 CNY voucher for real-name verification and no longer has fixed monthly free traffic. To get fixed monthly free traffic, you need to apply for the Upyun Alliance (Link Address), which provides 10GB of free cloud storage space and 15GB of CDN acceleration traffic per month.又拍云免费CDN流量  

Upyun Cloud Storage Setup Tutorial

Although we intend to use Upyun's CDN acceleration, Upyun provides cloud storage space by default, and cloud storage automatically includes CDN acceleration. Therefore, it is recommended to directly useUpyun Cloud Storage to accelerate your WordPress website①、Create Cloud Storage ServiceEnter the Upyun Console, find Cloud Storage, and create a service.又拍云创建服务 Choose a name yourself, for acceleration traffic, Naiba only accelerates within China. Generally, there are no visitors from abroad, and international acceleration costs are higher.Create a new operator, assign read, write, and delete permissions.All Permissions②、Bind DomainAfter creating the service, return to the service management interface. In the domain management section, click the domain binding button, then enter a CDN domain you want, for example, Naiba's is img.wordpressjc.com. Then go to the website where you purchased the domain, find the domain resolution panel, and add aCNAMERecordrecord. For the record value, see the location indicated by the arrow in the image below.绑定域名Don't know how to resolve? Read this article:#WebsiteBuilding# Tutorial on adding domain name resolution ③、API Key and HTTPS ConfigurationSwitch to 【Content Management】, and turn the API Key option ON. Switch to the 【HTTPS】 interface (skip this step if HTTPS is not needed). In the HTTPS configuration section, select Manage. If you don't have an SSL certificate, click the button to apply for one; either TrustAsia or Let's Encrypt is fine, both are free. Hotlink protection can be turned off initially and enabled later when traffic increases (at that time, hotlink-protected images can serve as promotion for you).

WordPress Upyun Plugin Setup Tutorial

Previously, online tutorials for Upyun mostly used theHacklog Remote Attachment Upyunplugin created by Wilderness Without Lights. However, this plugin hasn't been updated for a long time, and after upgrading to WordPress 5.3, image uploads often fail or result in empty files. Fortunately, another blogger has created a new Upyun plugin,WPUPYUN, so the following tutorial is divided into two parts: the old version and the new version.

Old Version Plugin Tutorial

After completing the settings on the Upyun website, you now need to return to WordPress. First, install the Upyun WordPress plugin. Plugindownload link here. Don't know how to install the plugin? After installation, find the Hacklog Upyun Remote Attachment option in the settings menu. Pay special attention to filling in the information below.又拍云WordPress插件设置Naiba uploaded the attachments from the uploads folder on the website to Upyun cloud storage himself. The directory structure is kept consistent on both sides for easy domain changes in the future. You can use FTP to upload your files yourself.For the Upyun FTP usage tutorial, refer to the official website's. After completing the settings, save them. The plugin will display a test prompt at the top; a successful test will be indicated. If you have uploaded all images to Upyun cloud storage, you can click the button below to replace the database URLs.又拍云插件设置After setup, publishing articles will default to uploading images to Upyun, and Upyun will automatically enable CDN acceleration.

New Version Upyun Plugin Tutorial

First, click the button below to download (or search for WPUPYUN in the backend to install) the new version of theUpyun WordPress PluginNew Version PluginAfter downloading, install and activate the plugin. (WordPress Plugin Installation Tutorial: Comprehensive Guide to Popular Essential Plugins) Enter the settings interface as shown in the image below.又拍云插件
  • Service Name: Fill in the service name created earlier for the cloud storage service.
  • Acceleration Domain: Fill in the acceleration domain you bound.
  • Operator Username and Password: Fill in the account information created in the Upyun backend.
  • Do not save locally. Choose according to your actual situation. It is recommended to keep a local copy.
After setting up, go to the Media Library to add an image. If set correctly, the image URL will change to your Upyun accelerated address. Test if the image is accessible. If the image displays normally,WordPress Upyun Accelerationis complete.

Common Issues After Accelerating WordPress with Upyun

Below are common issues collected from users after using Upyun to accelerate WordPress. If your question is not resolved, you can join group 774633089 for discussion.

Images Not Displaying After Publishing Posts When Changed to Upyun

In some cases, you may find that images do not display on the website frontend after being transferred to Upyun, but they show in the backend. This issue is caused by WordPress responsive image code and can be resolved by disabling it. The method is as follows:Disable WordPress default responsive image generation feature

Previous Images Not Displaying After Installing Upyun Plugin

After installing the Upyun plugin, you may find that all previously uploaded images on your website show a 404 error. This is because the plugin by default replaces your website's image links with the Upyun accelerated domain URL. You need to upload all your website's previous images to Upyun cloud storage.

How to Switch from Old Version Plugin to New Version Plugin

If you previously used Hacklog Remote Attachment Upyun and added the /wp-content/uploads path in the settings interface as described in this tutorial, you need to perform the following operations.
  1. Use FTP to move all files from the /wp-content/uploads folder in your Upyun cloud storage space to the root directory of the cloud storage.
  2. UsePlugins and Code for Batch Find and Replace to Modify Post Content in WordPressUse the method inside to modify the image links in the posts to the new ones.
Naiba's Tip:① You can first contact customer service to see if they can move the directory for you in the backend, as FTP operations can be cumbersome. ② If you do not delete (or move) the files under /wp-content/uploads, you also do not need to modify the image links in the old posts. Newly published posts will use the new path URL, while old posts will still use the old path URL, though this will occupy some extra cloud storage space. ③ If you need to replace them, for the plugin, simply replacehttps://original-website/wp-content/uploads/withhttps://upyun-custom-domain/For database replacement, the command is as follows:
UPDATE wp_posts SET post_content = REPLACE( post_content, 'https://原来网址/wp-content/uploads/', 'https://又拍云存储自定义网址/' ) ;

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step instead.

「Naibabiji WordPress Website Building Coaching」 — From selecting a domain and purchasing hosting to installing themes and publishing posts, I「ll guide you through every step, helping you avoid detours and reach your goals directly.

👉 Learn about Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan to Follow