Content Delivery Network (CDN) is an excellent idea to speed up your website. Using CDN will definitely increase your website speed which will provide the best performance to the end users and also search engine bots. In previous articles, I told you that your website speed affects search engine ranking. Google and Yahoo have already stated that in order to provide their visitors with a good content and navigation experience, they will not allow slow-loading websites in their search results. It is also our duty to ensure that the website’s performance must be good. If you use WordPress then this article is for you to help you speed up your blog. Content Delivery Network How to Use Content Delivery Network on Shared Hosting for WordPress.
The Content Delivery Network parallelizes the downloads across the hostnames, meaning when you request a webpage, multiple sub-requests are generated for the images, scripts, CSS, etc. So it takes longer if you host all images, scripts and css in one domain. Because after only the first request has been processed, another request will be processed. This slows down the page load time. For this we use the Content Delivery Network (CDN) to speed up downloads across hostnames. I will not use any external and premium content delivery network setup. I’m talking about creating your own content delivery network with WordPress in shared hosting for free. As I said before, this will also improve your search engine ranking. How to configure your own Content Delivery Network (CDN) on your shared hosting WordPress blog for free:
We have many alternatives for CDN, you can use external CDN network, but it is cost-effective, I think it cost $10 for the professional CDN services. Its performance is really good, it will improve your website speed by 20-30%. But if you can’t afford that amount, just create your own CDN with the existing domain on the WordPress blog with the w3 Total Cache plugin. Follow the steps below to configure the CDN network on your blog with the existing domain.
But before proceeding, you must create a backup of your entire My SQL database and directory data. Remember that backing up is very important. If something goes wrong, you can restore it from backup. So don’t forget to create a backup. I don’t want to create a mess here like the other sites that give completely confusing steps. I used to be very confused too, but I started working on it for myself and finally I got it.
Follow the steps below to configure the CDN with the W3 Total Cache plugin in WordPress:
1. We have to go step by step to make things work properly. So first open your FTP client and login with your domain FTP user account.
2. Now go to the domain home directory, after that if you have done so. htaccess file please make it writable by temporarily granting 777 permissions.
3. Now open the wp-config file located in your home directory and paste this following code there. define(‘ENABLE_CACHE’, true);
4. With the code above, you can use the W3 total cache plugin. Download the WordPress W3 Total Cache Plugin now.
5. Extract the zipped directory and upload the w3 overall cache folder to the /wp-content/plugins directory. Now login to your WordPress dashboard and activate the W3 total cache plugin.
6. Now login to your hosting control panel and create a subdomain called cdn. your domain. com, after logging into your domain FTP account, you will now see two domains, the first is the root domain and the second is the subdomain.
7. Go to your root domain download folder wp-content on your local computer.
8. Now open your subdomain directory in FTP and upload the wp-content directory.
9. Almost the work on hosting and server side is done, now it’s time for configuration part in W3 Total Cache in WordPress.
10. Go to the WordPress Settings tab and select W3 Total Cache. Now, on the General Settings tab, enable the Page Caching feature and the Select Disk Enhanced method.
11. Now select the “Minimize” option and choose the disk method. Please only use the disk method if you are using shared hosting. In case you have a dedicated or VPS plan, you can use the different methods.
12. And select your Content Delivery Network (CDN) as Self Hosted/File Transfer Protocol Upload.
13. Under Page Cache Settings, select the compression method as Gzip and Deflate, this will reduce your page size and load your page faster. Save the configuration.
14. Now go to the CDN settings and select the active host theme files. You can also use themes and even wp-include files. However, using wp-include files causes errors for some time.
15. After that, select Force overwriting of existing files and click Save Changes.
16. Now you can see the FTP settings below. There you need to enter your web hosting FTP settings, first your hostname, your hosting FTP username and password.
17. Specify the FTP path as /cdn. your domain. com. And enter the hostname of the site replace with cdn. your domain. com. Please see the following picture.
18. Now click save changes, after that try to clear the whole cache. This will create a new cached page with all the changes made.
19. Now just try to open your website. You can see a dramatically improved website. This works for me and I’m sure it will work for you too.
Any problems please email me at arafath(at)solvater.com. Implementing this idea is very important as it will increase your search engine ranking and visibility