SEO with maxcdn, maxcdn

How to implement SEO with MaxCDN

I have heard of the term CDN or content delivery network for a long time now and have seen many websites using it, however, I thought that it was complicated to set up after reading several articles online. So I didn’t use any CDN solution up until the beginning of last month. Sounds super crazy, isn’t it? I mean you don’t necessarily need CDN to speed up your WordPress or website. As long as its site is running on some of the best hosting company then you’re good. But it wouldn’t hurt to do some optimizations right?

So I finally set up an account at MaxCDN and got it to work with WordPress in just a few minutes. Several days went by and I notice something changed, Google has stopped indexing images on my blog. Did some searching on Google and landed on one of Brian Jackson’s site called OkayMarketing. I got in touch with him on Twitter and find out that we were facing the same issue. Brian was kind enough to walk me through this and I got Google to start indexing my images again.

From this, I also learned that people might not get this error but another one where MaxCDN will cause duplicate content because your files are now being hosted on two different URLs. In this article, I will show you how to resolve these problems in the same way.

Let’s go ahead and login into your MaxCDN control panel. Go to the SEO settings of your pull zone and enable both Canonical Header & Robots.txt. Inside the robot.txt box, you should have something like this. If not, just copy what I have below and paste it into there.

User-agent: *
Allow: /wp-content/uploads/
Disallow: /

maxcdn-seo-settings

The last step would be changing the image path in your Sitemap file. The majority of us now use Yoast SEO plugin so add this code below in your current theme’s functions.php file.

functionwpseo_cdn_filter( $uri) {
returnstr_replace( ‘http://yourdomain.com’, ‘http://cdn.yourdomain.com’, $uri);
}
add_filter( ‘wpseo_xml_sitemap_img_src’, ‘wpseo_cdn_filter’);
Don’t forget to change yourdomain.com to your WordPress address and CDN URL. Do a quick cache in W3 Total Cache or any plugin that you have. Wait for a day or two and everything should go back to its normal mode. Let me know if you have questions.
How to Start your own Hosting Business, website hosting business

How to Start your own Hosting Business with WordPress

Who doesn’t want to make a lot of money? The way that I’m doing it is through online blogging, I would join the affiliate program from many trusted services, do website installation, and many more. It’s fine if you can’t blog because you can also do other things online to make money such as creating your own hosting business.

Continue reading

WP ROcket Plugin, WP rocket is a must have WordPress cache plugin

WP Rocket is a must-have WordPress cache plugin

I recently changed the default theme of my Personal Site, leaving the Genesis Framework behind and put on a new minimal WordPress theme called SORBET. I fell in love with it while browsing through the demo version. The idea of it being super fast got to me and I immediately customize a few things and apply it live right away. The loading result didn’t disappointed me at all, however, it couldn’t beat the speed of my previous Genesis child theme, which means there are room for improvement.

Continue reading

avoid spammy link in WordPres posts with LinkPatrol

Avoid spammy links in WordPress Posts with LinkPatrol

I’m a big believer of Content Is King. Whenever I started a new blog the very first thing or goal is to write great contents, focus on the headings, and display images that capture readers attention. Though these are BIG factors in search ranking, sometimes we make small little mistakes that could destroy everything that we have built so far. For example, linking to a website that later on become a 404 page or turn into a bad site i.e pornographic. If you barely know about this, it’s not too late to fix it. In this article, I will show you some great ways to analyze all existence external links inside your WordPress posts.

Continue reading