Content Delivery Network (CDN) is an excellent idea to speed up your Website, Using CDN will definitely increase your website speed which will gives a best performance to the end users and also Search engine bots. In the previous articles I have told you about Your Website speed will affect the Search Engine Ranking. Google and Yahoo are already declared that, they will not going to allow slow loading websites in their search results, this is because to deliver a good content and navigation experience to their visitors. It is also our duty to ensure that performance of Website must be good. If you are using WordPress then this article is for you which helps you how to speed your blog. content deliver network How to use Content Delivery Network on Shared Hosting for WordPress.
Content Delivery Network will parallelize the downloads across the host names, it means whenever you request for a web page there are multiple Sub requests will generate for the Images, scripts, CSS etc. So it takes longer, if you host all the Images, scripts and CSS in one domain. Because after processing the first request only, another request will processed. So it will slow down the page load time. For that we use Content Delivery Network (CDN) to speed up the downloads across the hostnames. I am not going with external and Premium Content Delivery Network Setup. I am talking about making your own Content Delivery Network with WordPress in shared hosting for free. As I said this will also increase your search engine rankings. How to Configure your own Content Delivery Network (CDN) in 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 takes $10 something for the Professional CDN services. Its performance is really good, it will improve your website speed 20 to 30%. But if you can’t afford that amount, simply choose to create your own CDN with the existing domain in WordPress blog using w3 total cache Plugin. Follow these bellow steps to configure the CDN network on your blog with the existing domain.
But before going further you must take a back up of your Entire My SQL database and the Directory data. Remember taking back up is very important, if anything goes wrong you can recover it from the backup, so don’t forget to take a back up. Here I don’t want to make any mess like the other sites which are giving entirely confusing steps. I too really confused earlier but I started to work on it for my self and at last I did it.
Follow these bellow Steps to Configure the CDN with W3 Total Cache Plugin in WordPress:
1. We need to follow a step by step procedure to get the things work correctly, so first open your FTP client and Login with your domain FTP user account.
2. Now go to domain home directory, after that if you have. htaccess file please make it writable by giving 777 permissions temporarily.
3. Now Open wp-config file which is present in your Home directory and paste this bellow piece of code there. define(‘ENABLE_CACHE’, true);
4. The above code allow you to use the W3 total cache plugin. Now download the W3 total cache plugin from WordPress.
5. Extract the Zipped directory and upload the w3 total cache folder to /wp-content/plugins directory, now login in to your WordPress dashboard and Activate the W3 total cache plugin.
6. Now login in to your hosting control panel and create a sub-domain with a name of cdn. yourdoamin. com, after that login in to your domain FTP account now you will see two domains, the first one is the root domain and the second is sub-domain.
7. Go to your root domain download wp-content folder to your local machine.
8. Now open your sub-domain directory in the FTP and upload the wp-content directory.
9. Almost the hosting side and server side work is done, now its time for the configuration part in W3 Total cache in WordPress.
10. Go to WordPress settings tab, and select W3 total cache, and in the General settings tab now enable the Page Caching feature and Select Disk Enhanced method.
11. Now select minimize option and select the Disk method, Please only use Disk method if you use Shared hosting, in case if you have dedicated or VPS type Plan then 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 Compression method as Gzip and Deflate, this will reduce your page size and loads your page more speed. Save the Configuration.
14. Now go to CDN Settings and select the Host active theme files, you can use themes and even wp-include files also. But using wp-include files some time gives errors.
15. After that, select Force over writing of existing Files, and click save changes.
16. Now you can see the FTP settings bellow to it, There you have to give your Web hosting FTP settings, first your Hostname, your hosting FTP username and password.
17. Give the FTP path as /cdn. yourdomain. com. And give Replace site’s hostname with cdn. yourdomain. com. Please see the bellow image.
18. Now click on Save changes, after that try to Empty all the 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 am sure it will work for you also.
Any problem please send me at arafath[at]solvater.com. Implementing this idea is very essential because it will increase your search engine ranking and visibility