Best Way To Increase Blog Ranking Using SEO Keywords

SEO keywords and traffic are like bolts and nuts in the blogging industry. It is a fact that we are obsessed with methods to increase blog traffic and use the right keywords. I don't think there is a serious blogger who doesn't give a damn about the almighty blog traffic and keywords.

People say and talk about using the right keywords, keyword density and all those words with keywords in it. Does it make any sense to you? Sometime, I felt that keywords usage are overkill in most situations.

Before scrolling down, ask yourself what do you know about keywords?

Not so sure? Don't worry! Maybe this slide can show you a thing or two ...

What is SEO keyword all about?

This would probably go back to centuries back, you know ... during the Romans ... okay, kidding! Keyword is one or more words that have value to (not humans) search engine bots (more on that in a minute). Keywords are not chosen words and they are obviously, just like any other words.

Referring to the above, what makes keywords (or SEO keywords) so important that you can see nearly all blogging tips are emphasizing heavily on it? Here's what I think in my own terms.

Keywords are words ranged between one to five words which are seen important by search engine bots (some call it spiders, crawlers, you got the drill).

Don't get me wrong on this. SEO keywords is selected words which are seen highly valuable to these search engine crawlers and in terms of SEO. However, for most of us, these are just another bunch of words.

In blogging, keywords can be considered words which can describe what the whole sentence is all about in just a few words. Let's take a quick example below:

Search for: Ways to increase blog traffic

The keyword for this could possibly be blog traffic 0r even increase traffic. These are what called as SEO keywords.

Okay, I know it sounds complicated. So, take a step back. Breath in and head below. Let's go with another approach for those who want to understand more.

If you are searching for blogging tips (for example) on Google, you will probably see these:

Do you know the importance of SEO keywords towards a blog ranking?

Blogging Tips is considered SEO Keywords 

Do you notice the words which are bolded above? Whenever you type blogging tips, articles or blogs with high usage of the words will be '˜picked up' by search engines. Don't fuss over this first. What you need to do is to understand the concept behind the importance of keywords in terms of SEO and search engines.

Differentiate quality SEO keywords with low (or no) quality keywords

Like it or not, we are the one who determine the value of keywords. Let's see it from this approach, alright?

500,000 people search for blogging tips
500 people search for best blogging tips

Which do you think is the better quality keywords? Blogging tips is actually the clear winner here. I know and I am definitely sure there are like 50% of bloggers will be against this but hear me out first.

Since blogging tips has a higher search value, it will automatically beat any other competitors in terms of quality. Period.

Even if you are going to pay for Google Adwords, the keyword blogging tips will be more expensive than best blogging tips.

Congratulation! You had just learned how to find quality SEO keywords! Grab yourself a beer or a cup of coffee. The next part is going to be long.

Finding better quality keywords for blogs

Increase SEO ranking using the quality keywords

Keywords play a vital role in terms of SEO 

I hope you had a good break earlier (if you have not, go bookmark this page and take a 5 minute break). In this article, I basically promised you how you can increase your blog traffic with SEO keywords right? Here's how you can do it.

If you are going to choose blogging tips as your keyword, that is absolutely fine. In fact, it is a good SEO keyword honestly. However, you are going to compete with thousands if not millions of websites who is using blogging tips as their SEO keyword as well.

Now, Google and other search engines had thought about this as well. So, there comes another term, long tail keywords. Heard about it? Maybe yes, maybe not.

For those who have not heard about long tail keywords, you came to the right spot as I am going to explain to you what that means. For those who know what it means, don't go away! Have a read what I have to say and maybe you can share with me your idea using the comment form below.

What are long tail keywords?

Long tail means, long tail obviously. Is that so god-damn obvious? Indeed! But when it comes to keywords, it could also mean using longer keywords. For easier understanding, see below.

Quality SEO keyword + other words = long tail keywords

Long tail keywords are usually three words or more. Try not exceeding five words thought. Too long and you basically drop the value of the keyword in terms of SEO.

When you talk about increasing traffic to blog, you talk about using the right keyword. You want to get the more audience, traffic and search engines to point to your blog. And probably make them drool over the keyboard when they look at your blog. Whoa! Too much graphic!

I just want to say that to build good traffic to your blog, you need to focus on all types of keywords, well...basically just a few types only right? I like to go 70-30 or 80-20 where bigger chunk of keywords goes to common keywords people use and the small minority goes to high quality keywords and SEO keywords.

Long tail keywords doesn't mean that these are low quality keywords. However, a part or a huge part of these long tail keywords are consist of some high quality SEO keywords which search engines determined them as important. Basically, normal words which '˜hang around' with those famous words make them all, long tail keywords. Got it?

Recap on using SEO keywords for traffic boost

SEO keywords is important when it comes to building blog traffic. I said above and I will say it again. Striking a balance of keywords in your blog and article will actually determine how well the blog will rank on search engines.

Do I believe the hype on what SEO keywords people are talking about? Not really but I do believe that SEO keywords play a huge role in the success of an article, blog or website.

What do you think? Feel free to reply to this using the comment form below. If you like this article, could you please share this for me using the red Google+ button below?

Top 6 Blogging Tips That Helps Building Blog Ranking

Blogging is an ever growing business and what we are to do yesterday, might not be able to work today. Well, like it or not, that's the reality of life! I often ask myself what are important blogging tips as I managed to grow my blogs at Blogspot (some call it Blogger) with hundreds and thousands of viewers a day.

Lucky for you, the answers are right below. So, let's dive in now and I hope you enjoy this post! Feel free to contact me if you have any question though.

Hold on! This article has more than 1,800 words! Feeling lazy? Don't worry mate! I even prepared for you a slideshare PowerPoint just for you!

Important blogging tips: Blogging is all about content

Let's face it guys. You could probably not go far without content. You may spend thousands of dollars (and time) on marketing and social blasting but without content, you are basically nothing.

Good bloggers maintain their blogs. Great bloggers on the other hand, make blogs even better.

Let's take a moment and see how famous people do with their blogs:

Darren Rowse from ProBlogger.net. He created great blogs because he had great ideas. He did his own book, and even had writers trying to get into his blogging business. He didn't started big but he did created a path for himself. Good for you Darren!

Now you see, he didn't get famous simply by blogging nor he was some great blogging tips like this. He became famous by providing good content and articles to his readers. He started from scratch just like all of us.

Lisa Irby from 2createawebsite.com. I followed her recently and I totally love the way she blogged. She started blogging just with an intention to help out others. She did not '˜just blog' but she did quality blogging. All her blogs are filled with important information on blogging and creating websites.

The above two are pretty clear examples in my books. For those who think that SEO has taken over content in blogs, think twice. You are wrong!

Good content attracts people and that's what you need to target!

I even wrote how you can boost your blog or website content optimization just by using this SEO tool: Simply The Best Content Optimization Tool for Bloggers.

Don't just blog blindly

I don't know you but I used to blog blindly. I am not sure if this is a very common term but for me, it means creating an article but has very less content. Consider this as quantity over quality.

Yup, you got it right there. Most readers don't read articles because they want to but the fact is that they need to. Huh?! Let me explain below.

Where comes readers? Websites or articles are usually visited by others because readers (like you and me) need to find for information. If the blog has very less information, you are going to lose potential traffic within the first 10 seconds!

Keep your article or blog as simple as possible but packed with information. Avoid blind blogging anytime of the day if you want to be a successful blogger.

Importance of Search Engine Optimization a.k.a. SEO

Nearly all blogging tips encourage bloggers to focus in SEO

Do you know what SEO really do? 

SEO basically means the ability to be '˜visible' in the eyes of the public. Good SEO skills will bring the website to fame. Seriously.

You can't learn or master SEO, not today and not in the future. So, how can you probably be an SEO expert?!

If you want to be good in SEO, then make sure you understand how SEO works. Most bloggers (and even myself few years back) made the same ol' mistake. Focusing too much in SEO!

At that time, I thought I could understand SEO and make my website great. Well, I was wrong big time. I came to realized it when I came across an article written by one of the local guys in my country, Malaysia.

That article really struck me like a train hitting me face first. I thought to myself, 'I made the wrong approach and it took me years to realize it!'. Yes, I wasted probably a few years but I learned from it.

Understanding the SEO concept will actually help you in the blogging career. SEO is needed to create good blogs but it takes more than just that to at the top of search engine result pages.

My tip here is if you are just starting off writing, then focus in your blog contents first. As time passes by, slowly go with SEO approach way.

You can check this article out for more information, Boost Your Website Ranking Using SEO Keywords.

Understand what and how blogging works

One of the best blogging tips I ever learned is blogging is not a one day business. Well, I wish! I am going to admit it, at times, I wish I could start up a blog and make it to the first page of Google. Well, probably in my dreams.

One of the best blogging tips I ever learn is blogging takes time. It is like growing a fruit tree from scratch. Nurturing and taking care of the tree for a few years and then, you might see the tree bearing fruits.

For me, the biggest mistake done by most bloggers is that they assume that blogging is a quick way to make money. Well, you could but chances are pretty slim buddy! Of course, this eBook written by Darren from ProBlogger on how you can earn a six-figure income just from blogging.

I am a very '˜karma-person' and thus, I believe that one can actually make money blogging if they are devoted to help others. From the example way above, both Darren and Lisa are great writers who love to share their ideas.
And, what do they get in return? A pretty smooth sailing blogging career and making money through blogging!

I consider blogging as a full time work where you would need to devote your time and passion into the business. If you want to grow your blog, then ask yourself (first) why you blog. Then work from there with your reason.

Blogging is not about yourself...literally

This is a little tricky and I will try my best to explain. Blogging is not (everything) about yourself or making money online. You need to help others as well, so to say.

I bet you have came across more than one famous blogging website. Do you notice anything in common? Okay, here's the hint; guest post.

I am going to repeat myself. Blogging is not everything about yourself. If you want to start a blogging business, you should focus a great deal of time in your website and at the same time, other websites!

Websites are nowhere without some help. Let's face it guys. If you want to have a website with good traffic, then you need to publish your name to the world.

Instead of publishing 10 great articles on your blog, how about publishing 9 great ones on your site and another one in other blogs? You see, sharing one great article might sounds a lot to you (even to me). But, do you know how much traffic you are going to convert?

Yup, you hear me now and I really hope you do. When I contributed my first guest post, I really thought if that is really a good idea. At times, I thought that was a wrong idea. Thankfully, I was able to stick to my ground long enough to see the traffic growth on my own site.

Important blogging tip here is that when it comes to blogging, it is all about giving back to the community. Sharing is caring and in this case, you are opening your doors to even more possibilities just by sharing ideas with others.

Who knows, you might even have followers dying to write for you instead in return!

Build your blogging career correctly

Bloggers must be very focused when it comes to building a high traffic blog

Starting a blog on the right track is important to ensure that the blog will be successful 

This is probably the best blogging tip I have for you in this blog. If you want to be somebody in this blogging industry, then you need to make sure that you start the right way. And when I mean starting correctly, it doesn't mean that you should start a blog on a free website.

I know you might be looking for this. So, here are a few places you can start blogging for free:

*p/s If you want to go pro or serious in blogging, you should get a website instead of those free blogging sites.

To start a new website, you need to buy domain name and hosting services. Here are list of recommended companies:

Oh yes, this is the biggest mistake young and experience bloggers make. You may start blogging on a free blog and that doesn't kill you. However, it is going to affect you in the long run. I know how easy it is to rank well and faster using Blogspot than a website. Now, imagine that you continue your blog for the next 3 years and you grow your audience. Your blog could probably be PR 3 or maybe higher.

I am sure back there somewhere in your brain, you are tempted to have your own brand. Now, moving everything to a new website is easy but building your traffic back? Okay, that is a whole different story.

Don't get me wrong. You can still make it through without any issue but you are going to waste precious time. It takes months and years to build a brand and it doesn't come cheap. What I am saying is that if you have plans to develop a blog and probably become a serious blogger, then I would suggest you to get a self hosted domain even from scratch.

Don't be like me as I wasted a few years with free blogs provided by Blogger and WordPress. I developed my blogs so much that it is a hassle to transfer them over to a self hosted domain. I wasn't willing to lose the traffic anytime soon and I wish I had started everything with my own website and not with a free blog.

I have to add these useful blogging tips even if there is a gun pointed at my head right now as I type. When you have your own website, you can design it anyway you like. You can publish anything and you are not tied down to any terms and conditions. You are basically the king and the people as well. You can design your website to look anyway you like without having to worry about what others would think (literally).

Final words

I hope you enjoyed this blog post as much as I had writing it. Pardon me for such a lengthy post though and I truly hope that these blogging tips will serve you well in the future.

Feel free to tell me what you think about this post and if there is anything I could improve for the next article simply by replying using the comment form below or using this contact form.

If you like this article, could you please share this for me using the red Google+ button below?

Guide For Dummies: How To Setup Your WordPress W3 Total Cache Correctly?

W3 Total Cache is one of the world's most renown cache plugin for WordPress and you are probably finding the best setup guide for WordPress W3 Total Cache right?

Before that, let's see what W3 Total Cache actually is and how it functions. It provides close to everything you would need to make your website load blazing fast but most of the time, these settings could be very misguiding and complicated for bloggers and even new website developers. 

In this guide, I am going to try my best to provide you a step by step guide in setting up your W3 Total Cache. This post is a little lengthy but trust me, it will definitely worth your time especially when you are going to get the best setting for your W3 Total Cache WordPress plugin. 

Here's the slide which I had created thanks to SlideShare (for those who want to avoid reading the wall of text) ~ Enjoy!

 

Setup guide for WordPress W3 Total Cache

Firstly, head over to the plugin page and search for W3 Total Cache. Very easy and very straight forward right? 

Setting up your W3 Total Cache the right way

Plugin cache will help website to load faster.

The famous W3 Total Cache setting tab 

1. You should be able to see a new tab labelled as Performance on the left side of the screen on your WordPress dashboard. Click on that.

2. Next, you will see the Dashboard for W3TC and this gives you a general outlook of the plugin. You see the option to select General Settings and select that. General Settings works as a master switch for W3TC. You can enable or disable a certain option with just one click of the button.

3. On the General Settings page, scroll down a little and you will see Page Cache.

Page Cache: Enable

Page cache method: Disk: Enhanced

You do not need to press save at the moment. I will explain to you after this on why I rather save later than now.

4. Scroll down more and you will see the Minify option.

Minify: Enable

Minify mode: Manual

Minify cache method: Disk

HTML minifier: Default

JS minifier: JSMin (default)

CSS minifier: Default

5. Next is Database Cache option.

Database Cache: Enable

Database Cache Method: Disk

6. Scroll down a little to Object Cache.

Object Cache: Enable

Object Cache Method: Disk

7. To the next option, Browser Cache.

Browser Cache: Enable

8. For CDN settings, you may disable it first.

The right setup guide for WordPress W3 Total Cache can boost website loading speed

Setting up W3TC plugin could be time consuming but it will make your website load at blazing speed 

9. Reserve Proxy disable, Cloudflare settings disable, monitoring disable, miscellaneous disable and debug disable all. Now, you may save all your settings. After saving it, W3TC will ask you if you would like to clear the cache which you can select yes. The reason to save once you have done the whole page is to avoid inconvenience. You may save one by one but it is totally a time consuming process.

10. Select Page Cache on the left of the screen.

You should enable cache front page, cache feeds, cache SSL and don't cache pages for logged in users.

Cache Preload: Enable automatic prime

Update interval: 907

Page per interval: 7

Sitemap: http://www.yourdomain.com/sitemap.xml (change your domain to your own site name)

Save all settings and you may ignore the rest of the options on that page.

11. Select Minify button on the left.

Enable rewrite URL structure and for HTML minify settings, select enable, inline CSS minification, inline JS minification and line break removal.

As for JS minify settings, select enable, before (combine), after (minify) and before (combine). Enable preserved comment and line break as well.

As for CSS minify settings, select enable, preserved comment and line break removal.

Go for save all settings again and clear the cache.

12. Now, select Database Cache button on the left

Enable don't cache queries and save the setting.

13. You can exclude Object Cache as nothing needed to change there. Select Browser Cache instead.

Under General, enable everything except do not process 404 errors.

Under CSS & JS, enable all the options there. The only changes you need to do is change the value of expires header lifetime to 31536000 seconds.

Under HTML & XML, enable everything as well.

Under Media & Other Files, enable everything and set the value of expires header lifetime to 31536000 seconds.

Finally, save all settings and clear cache if needed. 

CONGRATULATIONS! YOU ARE ALL DONE! 

You can basically forget the rest of the options for now. These settings should serve you well with or without a Content Delivery Network. You will notice your site gets loaded up faster than usual. Remember to clear all the cache at least once to make everything stays for good.

And for the record, I have tested these settings on various websites now and all of them are giving them very good response time. Certainly hope this works well for you as well and good luck.

If you like this article, could you please share this for me using the red Google+ button below?

Cloudflare vs Incapsula: Which Is The Best CDN Provider?

Content Delivery Network is one of the most important tools when it comes to maintaining a website. CloudFlare and Incapsula are both very renown for their CDN services. Let's discuss deeper on both CloudFlare vs Incapsula for the best CDN provider.

As for the record, this review is done with some testings and cross referencing the results with other sources to ensure that you are getting the right information.

Content Delivery Network (CDN) is important to ensure that the website is loading faster and security measures are taken.

What makes both Cloudflare and Incapsula different? 

Related read: 3 of the best Content Delivery Network providers for bloggers

Introduction to Cloudflare and Incapsula in video form

Cloudflare:

 

Incapsula:

 Here are what both can offer:

  1. Free Content Delivery Network (CDN) with servers across the globe
  2. Optimizer which helps increase website loading speed
  3. Security features for websites which includes firewall
  4. Analytics that give you an insight of how many attacks, bandwidth used etc
  5. Other free and paid productivity apps you can mix and match 

So what makes them so different? How to choose the best free CDN for my website? 

Security features

If you would like to compare, both basically offers pretty good security features. If you would need to compare them neck to neck, Incapsula offers a better protection against all types of DDoS threats. Cloudflare does a pretty decent job when it comes to protections but it comes short if you are looking for a CDN which offers great defense against unwanted threats.

Winner: Incapsula 

Analytics and monitoring

Both Cloudflare and Incapsula offer their users reports to show the progress of the CDN. The reports range cover much of the basic information such as bandwidth used, threat experienced by the site, the number of bots and even the number of unique visitors visiting the website. When compared, I would personally prefer Cloudflare's report as it is more detailed and offers slightly more information that I required in just one glance. Basically, I give the winning score to Cloudflare as the layout is easier to see and users do not need to navigate any further to get additional information.

Winner: Cloudflare 

Optimizer anyone?

When it comes to optimizing, Cloudflare seem to be able to optimize my sites better than Incapsula. Various tests were done after installing for 48 hours to give a fair detail of time. After running those tests, it is pretty clear that (if I would give a score of 10), I would give Cloudflare a score of 9 and Incapsula a score of 7.

Winner: Cloudflare 

Which offers a better page loading speed?

I am pretty sure most of you guys are interested on this part generally. Cloudflare is definitely the winner here with a faster load of an average 0.5 seconds. As little as this seems, it is everything for many search engines and even high traffic sites. Cloudflare could have won this battle at this time of the writing because it has more servers around the world compared to Incapsula. At the moment, Cloudflare has 28 servers around the world and Incapsula has only 14 servers. This could be the main reason why sites using Cloudflare could load slightly faster than Incapsula.

Winner: Cloudflare

Related article: How To Configure CloudFlare Page Rules?

My take in CloudFlare vs Incapsula For The Best CDN Provider

Generally, Cloudflare seems to be working better out of the box compared to Incapsula. For a basic usage, Cloudflare really works well in terms of user-friendliness, moderate defense and very good loading speed for a free Content Delivery Network service.

Why not you try them today and give me your feedback?

For those using either one of them, which is your favorite one among both?

*If you like this article, could you please share this for me using the red Google+ button below?


Better WP Security vs Wordfence Security: The Battle For WordPress Best Security Plugin

We could have probably heard that website security is vital especially when hackers are all around nowadays. I am not going to leave any security loopholes in my WordPress site and I am sure you are either. When it comes to WordPress security plugin, there could have hundreds of plugins you can choose from but when you talk about the best, there could be two which comes to my mind.

Introducing Better WP Security and Wordfence Security.

Here are some information on both the plugins.

What is the best WordPress security plugin?

WordPress is the most popular blogging platform but security threats are very real

What is Better WP Security Plugin?

Created by: Bit51

What Better WP Security does:

What is Wordfence Security plugin?

Created by: Mark Maunder

What Wordfence Security does:

I know the list is rather long but it is relatively easy to say that both are trying their best to compete with one another. I tested both Better WP Security and Wordfence Security for a week each on various websites and I was surprised at my decision...really. Let me tell you why. 

Security effectiveness

Better WP Security - 9.5/10, Wordfence Security - 9.5/10

When it comes to security, I can tell you that both plugins look very seriously into the matter. Both actually impressed me more than what I actually expected them to perform. If you are going to install either one of these, rest assured your security effectiveness will be top of the chart. And that, I am definitely sure. 

User-friendly UI

Better WP Security - 9/10, Wordfence Security - 9.5/10

I have very split decision in this. I love Better WP Security's direct layout but I prefer the Wordfence Security interface. Basically in Better WP Security, you will be able to see all the issues in different colours (red as dangerous, green as safe etc). With a simple click, it will redirect you immediately to the setting for you to do any adjustment required. Compared to Wordfence Security, the layout is more 'WordPress-like' (imagine using W3TC).

Both plugins layout are extremely versatile and easy to navigate through. At the same time, both the plugins developers are doing a great job by trying to provide a compact view on the plugin dashboard itself. Here's are what both dashboards look like:

Better WP Security offers more security features compared to the rest of the WordPress security plugins.

Better WP Security Dashboard

 

Wordfence security provide easy to use navigation for both experience and beginers website developers.

Wordfence Security Dashboard 

Plugin usability

Better WP Security - 7/10, Wordfence Security - 9/10

When it comes to security plugin usability, this is where it makes all the difference. Better WP Security plugin is great but what makes it short from getting a higher score from me is because it requires a higher curve of WordPress understanding for a person to actually utilize it properly. In other words, you are open to all options to configure your WordPress but you are prone to create an accidental mistake if you have no idea what you are doing.

Compared to Wordfence Security, most options are pretty direct and even a beginner could use the plugin to the maximum of its capabilities. This definitely gives a better rating to Wordfence Security compared to the latter. 

How important is website loading speed for you?

Better WP Security - 10/10, Wordfence Security - 8/10

To be very honest, I been trying to search for this answer but failed miserably. Whenever I use Wordfence Security, I noticed that my site is loading less than one second slower compared to the time I used Better WP Security. after checking with various programs and tools, it really seems like Wordfence Security's firewall feature is creating a small 'lag' which affects the page loading speed. Maybe this could be me but I am not experiencing that when I am using Better WP Security. 

My honest conclusion between Better WP Security and Wordfence

If I would to choose and could only choose one as my best WordPress security plugin, then my money is going to Better WP Security. I know! I love Wordfence Security plugin and it is very close to flawless.

However, having the small page load 'penalty' really turns me off. Regardless what WordPress security plugin you choose, I am sure both of these plugins will not let you down.

How about you? Do you have any favorite security plugins you would like to share? Or, maybe you have your opinion on both the plugins? Feel free to fill the form below and tell us what you think.

If you like this article, could you please share this for me using the red Google+ button below?

Serve Static Content From Cookieless Subdomain for CloudFlare (Updated 2018)

​If you are thinking of speeding up your website, Google might be telling you the answer is to create a cookieless subdomain or domain. Well, that's easy for you to say. How to serve static content from a cookieless domain? More importantly, what is a cookieless subdomain?

​You can consider a cookieless subdomain is a term to describe data transferring from one point to another (in this case, data movement from subdomain to domain) has no cookies attached. Indirectly, this boost the loading speed of your domain.

This is what Google explain in its own words:

​Why is serving static content over cookieless domain important?

​Static content, such as images, JS and CSS files, don't need to be accompanied by cookies, as there is no user interaction with these resources. You can decrease request latency by serving static content from a domain that doesn't serve cookies. This technique is especially useful for pages referencing large volumes of rarely cached static content, such as frequently changing image thumbnails, or infrequently accessed image archives. We recommend this technique for any page that serves more than 5 static resources. (For pages that serve fewer resources than this, it's not worth the cost of setting up an extra domain.)

​​What does this means to you?

All static contents or data that are transferred with the accompanied by cookies. Though cookies are not needed for any transaction and do not serve any advantage, they will automatically be available for all data transfer. The only way to avoid such is when static contents are obtained from a cookieless site.

​Static content + ​cookieless domain?

​Serving static content or resources from a cookieless domain reduces the total size of requests made for a page. It is also important to note that there is no point setting up static subdomain for this matter if you are using a powerful web host or having very less page.

If you are using Pingdom, this sight is just too common for many:

serve static content from a cookieless domain

​Upon creating a cookieless domain, enabling it and start serve static content from a cookieless domain, here's what you will get on Pingdom.

fix serve static content from a cookieless domain warning

​On the side, I want to stress that due to the latest changes with the web and new protocols such as HTTP/2, it is safe to ignore this warning for now. However, I'm still a strong believer that we should find a solution to fix the "serve static content from a cookieless domain" warning if we can.

Why?

Serving static content from a cookieless domain helps your website to load faster and as a result, it will take a fraction of the time for your website visitors to load your website.

​Now that we had gone through the relationship between cookieless subdomain and serving static content, let's explore the right way to serve the following static resources from a domain that doesn't set cookies.


​This method is free but at the cost of some work and knowledge.For starters, you need to understand that the way your website is being configured will play a crucial role in the success of this method.


​How to create a cookieless subdomain using CNAME?

​When it comes to creating a cookieless subdomain, using a CNAME could be the easiest way of all​ (at least for me). This step is extremely easy to follow and ​after configurations, you can start serving static resources from a domain that doesn't set cookies.

  • ​Go to your cPanel (most shared web hosting offers this)
  • ​Create a subdomain (any name would do, e.g. static.domain.com)

​​This subdomain will serve as a CDN subdomain which is the key criteria to enable the process of serving static content from cookieless domain.​

​Step 1: Selecting the right installation path for the subdomain

​In order to create a proper cookieless subdomain, you have to ensure that when you are creating your subdomain, make sure it is pointing to your root directory instead of creating a secondary one.

For example, my root directory is /public_html and thus, it should be pointed or directed to /public_html and not the default, /public_html/static.

create cookieless subdomain

​Step 2: Editing the DNS Zone

​Once you have done pointing the subdomain, head over to your DNS Zone Editor. At times, these might be labeled as Simple or Advanced DNS Zone Editor for several types of cPanel but they are all alike.

editing the DNS zone

You would need to either create or modify the Name to your subdomain name and CNAME as your main domain. Of course, for the Type, you would need to select CNAME. You may start this by hitting the create button and if there is already a record, you just need to modify the settings to the above.

Still not sure? Let me explain to you, in other words. When you create the CNAME record you want to enter your static domain/subdomain as the label, name or an alias and your A record domain as the content or value. (The CNAME term, which stands for Canonical Name, actually refers to the domain you are mapping to, not the alias.  The common practice of referring to the alias as the CNAME is in fact backwards.) 

​Step 3: How to make sure you have static resources served from a domain that doesn't set cookies?

I could not emphasize how important this is but you must not skip this step no matter what. In WordPress, there are two common cookie-setters which are WordPress and Google Analytics. All you need is to do little changes in the configurations and you would be well on your way to a cookieless subdomain.

For WordPress, head over to your wp-config by login into your cPanel. Open it up and add this line to the file. If you are wondering where exactly you may place this file, you can place it at the bottom most of the script.

define('COOKIE_DOMAIN', 'www.yourdomain.com');

This is definitely a no-brainer but just to make sure, do remember to change your domain to your own domain name. After that, save the file and you are good to go!

For Google Analytics, all you need to do is to search for the specific code you had earlier placed in on your site and replace the code with the below one. For a quick tip, most Google Analytics code is kept close to the <body>.

_gaq.push(
['_setAccount', 'UA-xxxxxxx-1'],
['_setDomainName', 'www.yourdomain.com'],
['_trackPageview']
 );

Again, change your domain as seen above to your own domain URL and save the file.

​Important Note

note: If you are using cloudflare or any type of Content Network Delivery (CDN), please get your hosting and CDN provider to verify on the CNAME. For example, using Cloudflare will give you an error when you are following the above guide in changing the CNAME. Basically, the hosting or CDN provider will give you a new A figure to place in.


​How to serve static content from a cookieless subdomain for WordPress?

​Yes! I'm glad you asked.

If you use a top-level domain such as domain.com, then you would need to actually use a separate domain altogether. If you are using www.domain.com then you could simply set up a subdomain such as static.domain.com.

As most websites are configured on www.domain.com, the method below is strictly for websites with www:

  • ​Create a subdomain
  • ​You can use any name and I'm using static.domain.com. This is where you will be delivering your files from (and ultimately solving the server static content from cookieless domain warning.
  • ​Point your subdomain to your wp-content directory with a CNAME.
  • Edit your wp-config.php file to reflect the following:

​define("WP_CONTENT_URL", "http://static.domain.com"); 

define("COOKIE_DOMAIN", "domain.com");

​Where to find wp-config.php file?

The configuration file of your WordPress script is located in the WordPress installation directory and its name is: wp-config.php

You can edit it through cPanel --> File Manager. Find the file, click on it and from the top menu choose "Edit".


​If you are using content delivery network from CloudFlare, setting up a cookieless subdomain may be a challenge.

According to CloudFlare, CloudFlare states that "it will add a security cookie to any domain or subdomain that is being proxied by our service. In addition, since Cloudflare is already caching your static content by default, there really is no need to have a cookieless domain.”

Lucky for you, ​here's what you need to know.


 

​While Cloudflare may add a security cookie to every domain/subdomain, this issue is causing the following:


(1) Website performance issues (FTTB and overall image download speeds).


(2) Cookies for each image are being downloaded. When we check our browser(s) for downloaded info, we see that the culprit are these images. (Note: All of our images have been reduced in size and optimized using reSmush.it)

With HTTP/2 enabled on CloudFlare, they all load in parallel, and very quickly. You’ll see from my sample, 12 images (there are quite a few more on that list) all load in a span of less than a tenth of a second.

Serve Static Content Cookieless Subdoman CloudFlare

​Regardless, CloudFlare cookies are never going away. They don’t add significant overheard and are required for CloudFlare functionality.


​Summary: Are youready to serve static resources from a domain that doesn't set cookies?

​I hope you will find this guide useful in setting up static resources from a cookieless subdomain.

What do you think? Leave a comment below.