Content Delivery Network (CDN) is a great idea to speed up your website. Using CDN will definitely increase the speed of your website, giving better performance to end users and search engine bots as well. In the previous articles I have told you that the speed of your website will affect the ranking of the search engines. Google and Yahoo have already stated that they will not allow slow loading websites in their search results, this is because they provide good content and a good browsing experience to their visitors. It is also our duty to ensure that the website performs well. If you are using WordPress, this article is for you and will help you speed up your blog. content delivery network How to use content delivery network in shared hosting for WordPress.

Content Delivery Network will parallelize downloads across hostnames, which means that every time you request a web page, multiple child requests will be generated for the images, scripts, CSS, etc. So it takes longer if you host all your images, scripts, and CSS in one domain. Because after processing only the first request, another request will be processed. So it will slow down the loading time of the page. For that we use Content Delivery Network (CDN) to speed up downloads via hostnames. I will not opt ​​for the premium and external content delivery network setup. I’m talking about creating your own content delivery network with WordPress on shared hosting for free. Like I said, this will also increase your search engine rankings. How to set up 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, but it is cost effective, I think it costs $ 10 for 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 choose to create your own CDN with existing domain on WordPress blog using w3 total cache plugin. Follow these steps below to set up the CDN on your blog with the existing domain.

But before proceeding further, you need to back up your entire My SQL database and directory data. Remember that backing up is very important, if something goes wrong, you can get it back from the backup, so don’t forget to take a backup. I don’t want to make any mess here like the other sites that are taking completely confusing steps. I was really confused before too, but I started working on it myself and finally made it through.

Follow these steps below to configure the CDN with the W3 Total Cache plugin in WordPress:

1. We need to follow a step-by-step procedure for everything to work properly, so first open your FTP client and log in with your domain FTP user account.

2. Now go to the home directory of the domain, after that if so. htaccess, make it writable by temporarily granting 777 permissions.

3. Now open the wp-config file which is present in your home directory and paste this code below. define (‘ENABLE_CACHE’, true);

4. The above code allows you to use the W3 Total Cache Plugin. Now download the WordPress W3 Total Cache Plugin.

5. Extract compressed directory and upload w3 total cache folder to / wp-content / plugins directory, now login to your WordPress dashboard and activate W3 total cache plugin.

6. Now log into your hosting control panel and create a subdomain with the name cdn. yourdoamin. 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 the download wp-content folder of your root domain on your local machine.

8. Now open your subdomain directory on the FTP and upload the wp-content directory.

9. Almost all the work on the hosting side and server side is done, now it is time for the configuration part in the W3 Total cache in WordPress.

10. Go to WordPress settings tab and select W3 total cache, and in general settings tab now enable page caching feature and select disk enhanced method.

11. Now select the minimize option and select the disk method. Use the disk method only if you use shared hosting, in case you have a dedicated or VPS type plan, you can use the different methods.

12. And select your Content Delivery Network (CDN) as Self-Hosted / File Transfer Protocol Upload.

13. In the page cache settings, select Compression method such as Gzip and Deflate, this will reduce your page size and load your page faster. Save the configuration.

14. Now go to CDN Settings and select the active theme files from Host, you can use themes and even wp-include files too. But using wp-include files sometime gives errors.

15. After that, select Force overwrite existing files and click save changes.

16. Now you can see the FTP settings below. There you need to provide your web hosting FTP settings, first your hosting FTP hostname, username and password.

17. Give the FTP path as / cdn. Your domain. com. And provide Replace site hostname with cdn. Your domain. com. Please see the image below.

18. Now click on Save Changes, then try to clear the entire cache, this will create a new cache 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 problem please send me to arafath[at]solvater.com. Implementing this idea is very essential because it will increase your search engine ranking and visibility.

Leave a Reply

Your email address will not be published. Required fields are marked *