Menu

Menu

Our Blog

The latest post from us

CDN Benefits

CDN Benefits

Below are just a few of the many benefits of using a CDN on your WordPress site.

1. Speed 

A dramatic improvement in website’s performance is one of the main and biggest reasons why people opt for using this service. Shortening the physical distance between the user and the server, a CDN drastically reduces the network latency – making your site load at the speed of light.

2. High Global Availability and Scalability

CDNs also offer high-availability and scalability. What if your website’s main server goes down or crashes due to a sudden spike in traffic? When enabled, your website will always stay up and running as multiple servers are there to handle  the traffic. Since the replicated content is available across multiple POPs at different geographic location, wed traffic is dynamically routed to another server if one go down. And there is no need to worry about scalability as CDN providers are built with that in mind. If you are utilizing a smaller shared host, a CDN could actually keep your website from crashing since it is handling most of the load.

3. Security

Talking advantage of cutting-edge technologies like WAF (Web Application Firewalls) and Origin Shied. A lot of providers offer an additional layer of security to keep data secure, process customer transactions and prevent DDoS, DNS Amplification, and Layer 7 attacks. Other benefits include putting you behind a proxy which helps to hide your origin IP address.

4. SEO Advantages

Everyone loves a blazing fast website. Particularly Google which made site speed a crucial ranking factor back in 2010. Along with helping your website rank higher in search engine results, these services also increase the crawl rate of your website’s image in Google Image Search.

5. Lower Bandwith Costs

Another big benefit of a CDN is that it can help offload CPU and resources from your hosting server (origin server). This helps prevent traffic spikes from overwhelming your host. It can also help decrease your bandwith costs. A CDN can cut bandwidth requests by up to 70%. The lower bandwidth requests are, the more bandwidth costs you save width your web host.

LEAVE YOUR COMMENTS

We really like to research and share ways to make your WordPress site faster. One of the no-brainers when  it comes to speed nowadays is to utilize a content delivery network (CDN). They talk the load off of your wed server while speeding up the delivery of content to your visitors thus making their experience better!

Content Delivery Network

What is a WordPress CDN?

CND is short for content delivery network. These are a network of servers (also known as POPs) located around the globe. They are designed  to host and deliver copies of your WordPress site’s static ( and sometimes dynamic) content such as images, CSS, JavaScript, and video streams.

First off, you don’t want to get a CDN confused with your WordPress host. They are complete separate services. A CDN isn’t a replacement for your hosting provider, but rather an additional way to increase the speed of your site.

How a CDN Works?

For example, when you host your website at a physical data center location, such as US Central. When people over in Europe visit your website it is going to take longer for it to load verses someone visiting it from US. Because the data has to travel a further distance. This is what is know as latency.

( Latency refers to the time and or delay that is involved in the transission of data over a network. In other words, how long it takes for a packet of data to go from one point to another. Nowadays this is typically measured in milliseconds, however, it could be seconds depending upon the network. In other words, the further the distance the greater the latency, which equates to a longer delay.)

And that is when CDN comes into effect. It helps to reduce that latency by loading your site’s content from servers closer to them. These CDN servers are sometimes also referred to as POPS (points of presence).

Continue >>

LEAVE YOUR COMMENTS

optimize-database

 

8. Optimize Your Database

You can optimize your WordPress MySQL database directly from PHPMyAdmin, or by using a plugin like WP-Optimize or WP-DBManager.

These plugins are capable of deleting all your pending spam comments, trashed posts, auto-saved drafts, post revision to name a few. They can also perform general MySQL database optimization queries without you having to access PHPMyAdmin.

A well optimized, fast responding database is a huge bonus for a database-driven software like WordPress.

Empty your trash

With the WordPress trash system. Whenever content is deleted, be it a comment, post, page, media etc; it is sent to trash. From here, the content can either be restored or deleted permanently. It is effectively a fail-safe system that helps you recover anything that was deleted accidentally ( in much the same way the recycling bin works in your computer).

Trash can take up a lot of unnecessary room in your website’s database. The bigger the database, the longer it is to retrieve information from it.

By default, WordPress will automatically delete trash after thirty days. You can reduced this by modifying the wp-config.php file. For example, you could reduce this to seven days by adding the following:

define (‘EMPTY_TRASH_DAYS’, 7);

You can completely disable the trash system by adding following code:

define (‘EMPTY_TRASH_DAYS’, 0);

Turn-off trackbacks & pingbacks

Trackbacks and Pingbacks are’nt good for your site speed. Whenever someone links to you, a trackback gets created, utilizing server and database resources.

So, unless absolutely necessary, you can simply disable trackbacks and pingbacks from WordPress’s Discussion Settings.

You should also be wary of the number of drafts and post revisions your website has stored. The WordPress revision system allows you to go back to older versions of articles, view them and restore them.

In addition to one autosave of your posts and pages, each time you save your articles, it will generate revisions. This means that an articles with ten revisions with take up ten times as much room on your databases than the actual article.

By default, WordPress will save an unlimited number of revisions, however this is often not necessary. It is better to reduce this limit to something more practical such as two or three.

You can do this by adding the following code to your wp-config.php file :

define( ‘WP_POST_REVISIONS‘, 3 );

Alternatively, you can completely disable the post revision system by adding the code below to your wp-config.php. From a blogger’s perspective, this is not an optimal setting when post revisions are useful.

define( ‘WP_POST_REVISIONS‘,  false);

A more practical way of cleaning your WordPress databased is to use WP Optimize. The plugin can automatically remove auto-drafts, spam comments, trackbacks and more. WP-DBManager is also a good solution for solution for optimizing your database.

LEAVE YOUR COMMENTS

optimize site

 4. Plugin Problem

Plugins are one of the biggest causes of WordPress websites being slow. The more plugins you install without research, the more likely you will face performance issues.

Monitor your plugin

Before you install any plugin on your website, ask yourself “Is this plugin necessary?”.

Certain plugins are causing websites to be slow. There are many reasons for this including bad coding, calls to external servers and persistent calls and updating of your WordPress database.

One plugin I highly recommend you use is P3 Profiler. Once in a while, monitor your plugin’s performance and impact on your site’s load time by using this plugin. It will show you exactly how much load time your plugins are adding. It give a breakdown which display exactly how much load each plugin adds.

It’s the most effective way of you can observe the trends to know which plugins are really slow and troublesome for your site.

Install A caching plugin

The most effective way to improve your site’s load times is to install a caching plugin. As soon as you install a plugin like W3 Total CacheWP Super Cache and WP Fastest Cache, you’ll be able to tell that your site loads faster.

In simple words, when a caching plugin is active on your site, it servers users cached copies of your pages. It greatly reduces MySQL database access, no. of PHP requests, server access for static resources, and even HTTP requests (in case of combining multiple files into one).

Install well-coded plugins  

There are literally tons of plugins available for WordPress. That doesn’t mean all of them are well-coded. You should always install plugins  that are well optimized for the latest version of WordPress which don’t slow your site down.

perform routine maintenance on your plugins

Plugin maintenance is very important for WordPress sites. If you don’t keep all your plugins and WordPress itself updated, chances are that your site will get hacked.

It’s not a rule, but older versions of plugins are generally more vulnerable to attacks. Not only that, newer versions of plugins are in most cases more optimized, faster and more secure with less or no bugs.

You should also disable, and even delete the plugins that you don’t use. More plugins doesn’t necessarily mean a slower site, but lots of low quality plugins together will slow down your site significantly.

Continue >>

LEAVE YOUR COMMENTS

optimize site

5. Use a Content Delivery Network to Speed Up WordPress

Your website is hosted in a data center somewhere in the world. The further a visitor is from the location of your data center, the longer it takes for your web pages to load.

Content Delivery Networks (CDN) address this issue by utilizing dozens of data centers around the world. They take the heavy work away from your hosting company by hosting your images, CSS and Javascript files, and serving these files to visitors from the closest location to them.

Generally, those static resources will be served to your visitors by the server closest to them. That will ensure the heavy part of site loads as fast as possible for your users.

Popular content delivery networks include MaxCDN, Amazon CloudFront and CloudFlare. One that, MaxCDN’s really easy to setup on WordPress site

6. Enable Gzip Compression

You should serve compressed versions of your site to your visitor, as they’ll be less in size and will generally load a lot faster.

The best option is to enable Gzip compression straight from cPanel ( if your host offers you that) if you’re on a shared server. Otherwise, you can enable Gzip compression using a plugin like W3 Total Cache.

There are also a few tweaks that allow you to enable it from your .htaccess file. You can simply add this code to the beginning of your .htaccess file to enable server-level Gzip compression for a few known file types:

Gzip can also be enabled via the WordPress options page. You can find this page at www.yourwebsite.com/wp-admin/options.php. To enable Gzip, simply change the value of the Gzip field from to 1.

7. Optimize Uploaded Images

Images can help break up long pieces of text and can help your articles be shared more frequently on social media services; however they also talk up a lot of storage. Therefore, pages that contain many images can take a long time to load. There are a few ways you can optimize your uploaded images.

Most photo editing applications, such as PhotoShop, allow you to do this via the “Save for Web” option.

A good plugin to optimize images that have already been uploaded is WP Smush.it. The Wp Smush.it plugin allows you to upload images normally while it automatically optimizes them using Yahoo’s Smush.it API behind the scenes.

If you do not want to sacrifice image quality, check out Lazy Load. The plugin ensures that images are only loaded when area becomes visible to the user. This will greatly reduce page loading times.

Continue >>

LEAVE YOUR COMMENTS

Optimize site

The time it takes your website to load influences how  successful it will be. If your website is slow, visitors will turn away in droves. They might even click the back button before your website loads.

Website performance will also influence your rankings in search engines.

Today, i would like to share with you tips on how you can optimize your website and decrease page loading times.

Before applying these techniques to your website, i encourage you to check the speed of your website using a free performance service such as GTMetrix or Google PageSpeed Insights. These services will inform you of your page loading time and the overall file size of your page. They also offer tips. Let’s get started :

1. Choose the Right Hosting Plan

The first step in optimizing your website correctly is to choose the right hosting plan. You are fighting a losing battle if your server is talking an age to process HTTP requests and MySQL commands. You can refer and request our service at here.

2. Use a Fast WordPress Theme

A design that has been coded badly, or uses images throughout the design, will add unnecessary weight to your page. It is not uncommon for some WordPress themes to be a few megabytes in size. Such a design could add a few seconds to your page loading time. We will introduce you to some WordPress themes are incredibly well-coded, light-weight, very fast and easily customizable. You can refer to our themes here. If you can handle a little bit of code or hire a developer, choose one of those to build something great on theme.

3. Minify and Combine CSS and Javascript

Each call to your CSS and Javascript files is an HTTP request. This means that when someone visits your web page, their computer sends a request for a file and then the server sends it back. The more requests there are to your server, the longer it will take for your pages to load.

There are a number of WordPress plugins available that will minify your CSS and Javascript files. This greatly reduces the number of HTTP request. I recommend using either WP Minify or Better WordPress Minify.

Continue >>

LEAVE YOUR COMMENTS

What is .htaccess File?

The .htaccess file is a server configuration file. It allows you to define rules for your server to follow for your website. It’s able to override many server configuration settings and can be used for authorization, cache control, website optimization and URL rewriting.

In WordPress, the .htaccess file is used most commonly for rewritting URLs, making them cleaner, and more readable by humans and search engines. So, WordPress uses .htaccess file to generate SEO friendly.

In the Settings > Permalinks section of the WordPress Adminstration, you have the option to select your URL structure. WordPress will automatically rewrite your .htaccess file to handle the URL structure you select. If WordPress is unable to write to the file , it will ask you to do it manually.

How to edit .htaccess File?

The .htaccess file contains directives (instruction) that tell the server how to behave in certain scenarios and directly affect how your website functions.

There are Many Ways to Edit a .htaccess File

  • Edit the file on your computer and upload it to the server via FTP
  • Use an FTP program’s Edit Mode
  • Use the File Manager in Cpanel

Before editing your .htaccess file, it is important to download a copy of it to your computer as backup. You can use that file in case anything goes wrong.

The fastest and easiest way  to edit a .htaccess file for most people is to use the File Manager in cPanel.

First, open the File Manager :

  1. Login to cPanel.
  2. Click on “File Manager” in the “Files” section.
    .htaccess file
  3. Select “Document Root for:” and select the domain name you wish to access.
  4. Make sure “Show Hidden File (dotfiles)”  is checked.
  5. Click the “Go” button.
    The File Manager will open in a new tab or window.
  6. Look for the .htaccess file in the list of files. You may need to scroll to find this file

Next, Edit the .htaccess File

  1. Right click on the .htaccess file and click “Code Edit” from the menu. Alternatively, you can click on the icon for the .htaccess file and then click on the Code Editor icon at the top of the page.
  2. A dialogue box may appear asking you about encoding. Just click Edit to continue. The editor will open in a new window.
  3. Edit the file as needed.
  4. Click Save Changes in the upper right hand corner when done to save your changes.
  5. Test your website to make sure your changes were successfully saved. If not, correct the error or revert back to the previous version until your site works again.
  6. Once complete, you can click Close to close the File Manager window.
LEAVE YOUR COMMENTS

Protect wp-admin with .htaccess file

WordPress – The most widely used Content Management System (CMS) in today’s internet realm – due to its popularity, is an incredibly attractive target for hackers. The protection of WordPress is very fragile and fragile in the face of attacks. Are you looking for some useful .htaccess tricks for your WordPress site? .htaccess is the most essential file for any website. You can do a lot of things using .htaccess file.

Some useful .htaccess tricks for WordPress that you can try:

1. Protect Your WordPress Admin Area

You can use .htaccess to protect your WordPress admin area by limiting the access to select Ip addresses only. Simply copy and paste this code into your .htaccess file :

Replace xx values with your own Ip address. Each time you want to visit your wp-admin panel  from another location, you would have to add an extra IP address. That is the only downside to this hack, but this will keep your wp-admin folder safe.

2. Ban Suspicious IP Addresses

Are you seeing unusually high requests to your website from a specific IP address? You can easily block those requests by blocking the IP address in your .htaccess file.

Add the following code to your .htaccess file:

Don’t forget to replace xx with the IP address you want to block.

3. Protect .htaccess From Unauthorized Access

As you have seen that there are so many things that can be done using the .htaccess file. Due to the power and control it has on your web server, it is important to protect it from unauthorized access by hackers. Simply add following code to your .htaccess file:

4. Protect Your WordPress Configuration wp-config.php File

Probably the most important file in your WordPress website’s root directory is wp-config.php file. It contants information about your WordPress database and how to connect to it.

To protect your wp-config.php file from unathorized access, simply add this code to your .htaccess file:

5. Password Protect WordPress Admin Folder

If you access your WordPress site from multiple locations including public internet spots, then limiting access to specific IP addresses may not work for you.

You can use .htaccess file to add an additional password protection to your WordPress admin area.

First, you need to generate a .htpasswds file. You can easily create one by using this online generator.

Upload this .htpasswds file outside your publicly accessbile web directory or /public_html/folder. A good path would be :

/home/user/.htpasswds/public_html/wp-admin/passwd/

Next, create a .htaccess file and upload it in /wp-admin/ directory and then add the following codes in there:

Don’t forget to replace AuthUserFile path with the file path of your .htpasswds file and add your own username.

For detailed instructions, see our guide on how to password protect WordPress admin folder.

LEAVE YOUR COMMENTS

404 errors

Simple Tip to Fix 404 Errors in WordPress

Minimizing the impact of 404 errors is simple. In fact, there are several ways to deal with them. But for first, let’s talk about prevention.

How to Detect Broken Links on Your WordPress Website

Over the course of your site’s life, some links may stop working. In general, any link that doesn’t work as it should is referred to as “broken”.

The broken-link-checker plugin enables you to automate the process of checking the links on your site to identify any broken ones. If it finds one, the plugin will let you know so you can jump in and fix it.

404 errors - plugin

How to Create a Custom 404 Error Page for WordPress

404 error pages in WordPress themes are usually pretty dull and not very helpful. One of the biggest problems with default 404 error pages is that most of them don’t give you enough information. If you’re somewhat tech-minded, you’ll probably take the time to read through your browser’s error description, but most people probably don’t.

There are some plugins that you can use too improve the 404 template in WordPress. Such as :

However, keep in mind that creating  a custom 404 error page isn’t a fix. It’s just a way to lesson the negative impact when this issue pops up. So, let’s talk about some fixes.

Fix 404 Errors in WordPress

A lot of the times, you can fix the WordPress 404 errors by simply flushing your permalinks.

Save Permalink

You can do this by going to Setting >> Permalinks in your WordPress admin area and click on the save changes button without making any changes.

WordPress will automatically update your .htaccess file. You should check your website to confirm that 404 errors are gone.

If it doesn’t, then it’s possible that your .htaccess file isn’t writable, and you may have to manually update it.

Edit your .htaccess File Manually

In most cases, if updating your .htaccess file via the WordPress dashboard doesn’t work, it’s due to a permissions error on your back end. It means you’ll need to get back there and make the changes manually, which is easier than it sounds.

To do this, you’ll need to use an FTP client and access your website using the credentials your web host gave you. Once you’re in, access your WordPress root folder – it’s usually named either public_html, www, or after your site.

This will open the file using your default text editor – you’ll want to delete the contents and replace it with WordPress’ default settings:

Now save your changes and try re-accessing your post. They should be working, although you may have to go back to the Permalinks tab in WordPress and re-configure your URL structure to get it back to the way it was before.

Redirect 404 Errors

A “redirect” is when you take a user visiting one URL, and send them to another one automatically. Your goal is to redirect anyone visiting a non-existing page on your site to another one ( such as your home page, for example)

All you have to do is open your 404.php file in your theme’s folder. If it doesn’t exist, then create a blank php file. Paste the following code in there:

Now when a user hits a 404 page will be redirected to the homepage.

Also you can replace .get_bloginfo(‘url’) with your website domain name to avoid extra request to WordPress to get domain name and make redirection more faster like below.

 

 

 

Finally, test the redirection in your browser window.

We hope this article will help you!

 

LEAVE YOUR COMMENTS
LEAVE YOUR COMMENTS