Improve WordPress site PageSpeed in Simple Steps

Site PageSpeed is one of the important factors for better traffic not only for SEO but for a better user engagement experience. Use the following quick and simple steps to improve WordPress site PageSpeed.

Working on using the right keywords is also important. Today, quality is most important than anything else. However, filling the gaps as much as possible to make your blog perfect will always help. Quality content can be built with using the right keywords that people are generally using to search information or which comes handy to them.

Install a Caching Plugin

The plugin W3 Total Cache caches and compresses files to reduce page download time. I have seen great improvements in the page load time in the Google’s PageSpeed Tool.

Modify your site’s .htaccess File

Login to your site’s file manager and edit .htaccess file (backup the file first!). Then copy the below code and paste in the top of the .htaccess file. This is to improve on Leverage Browser Caching PageSpeed factor.


# Enable expirations
ExpiresActive On

# Set default expire time
ExpiresDefault “access 2 week”

# Specify expire time by file type
ExpiresByType image/jpg “access 1 month”
ExpiresByType image/jpeg “access 1 month”
ExpiresByType image/gif “access 1 month”
ExpiresByType image/png “access 1 month”
ExpiresByType text/css “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType text/x-javascript “access 1 month”
ExpiresByType image/x-icon “access 1 month”


Use Asynchronous Code for AdSense

I use WP Insert for inserting ads on the pages, it helps me manage the ads easily from time to time. Ensure that you are using Asynchronous AdSense Code.

To get the Asynchronous AdSense Code, goto your Google AdSense Account, My Ads then click on Get Code for the Ad of your choice. In the overlay popup, click the dropdown and select Asynchronous as shown below. Currently they are in BETA phase, but it works well on my website. Copy this code and paste it either in WP Insert or whatever plugin you use for AdSense or directly on the page as per your convenience.

asynchronous adsense configuration

Use Asynchronous Code for Social Plugins

Social plugins add a lot of overhead of Javascript and CSS contributing in more load time of the pages. Using asynchronous plugin like Async Social Sharing may help you reduce the overall load time of the page of your WordPress site.

To improve the PageSpeed for the factor Eliminate render-blocking JavaScript and CSS in above-the-fold content, you will need to ensure that the Javascript and CSS are not blocking the page load meaning the rendering of the page is not blocked while these asset files are loading. The solution to this is to move the JS and CSS files towards the footer of the page so that they load after above-the-fold content is loaded. Above-the-fold content means the content that is present in the viewport (which is not below the visible screen). I have added Footer Javascript Plugin for the same.

Compress Image with Smush.It Plugin

The images can be compressed without losing (visible) quality using the plugin like Smush.It. To smush already uploaded images, Go to Media >> Bulk It takes couple of mins depending upon number of images your site has in the media library but it compresses the images contributing in better PageSpeed.

Lazy Loading of Images

Lazy loading of images can significantly improve in user experience. It loads the images as they appear in the viewport. This means that the images which are not visible in the current screen are downloaded when the user scrolls down to that area of your page. You may use JQuery Image Lazy Load Plugin for this.

Minify CSS / JS

If you have any custom CSS or JS of your own, you can first minify using online tools then upload it to your WordPress site.

That’s all! Now check your site’s PageSpeed Insights and let me know if you got any improvement.

Interesting Links

Why Prefer Subdirectory WordPress Multisite

I use to get a lot of (at least) impressions for a keyword television on this blog. So I decided that I would rather make subdomains for this category and I created WordPress multisite with multiple subdomains including, etc. With this setup, however, the impressions came down so there was no way for me to improve the conversion rate but changing from subdomains to subdirectory WordPress Multisite seems to be working!

Also, while building the backlinks, i realized that subdomains were not being given much importance and only the main domain’s backlinks were working for the organic search.

So, I changed the URL structure from subdomains to subdirectory of this WordPress Multisite. Now, I don’t have to worry about backlinking different domains. Alone, would help me build the rapport. I wrote the article steps for changing Multisite WordPress blog from subdomains to subdirectory.

I would be glad to discuss if you have any other point of views.

Steps to change WordPress Multisite from Subdomain to Subdirectory

I decided to change the multisite’s URL structure from to because of the reason I explained in Why prefer multisite with subdirectory url structure over subdomains post for WordPress Multisite.

I searched over internet and what I found on internet was very close to what I was trying. So I am writing this post to list out step by step what precisely worked for my site while changing the multisite WordPress from subdomain to subdirectory structure.

Steps: WordPress Multisite from Subdomain to Subdirectory

  1. Before doing any changes, do take a backup described on the official WordPress site: Backup WordPress Database
  2. Now, take backup of the files you are going to modify e.g. .htaccess
  3. Now, open your .htaccess file from the root directory of your WordPress install and replace the code between “# BEGIN WordPress” & “# END WordPress”. There are instructions for updating code based on your WordPress version but it was really very confusing for me. So I tried different options and the code below worked for me.

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

  4. Ensure that you set redirects at subdomains level to not lose on any traffic. Use the following code to setup the redirects just above “# BEGIN WordPress” that you updated in the previous step. I have copied the exact code from my wp-config for your understanding. Note that is the main domain and subdomains are tv, fashion, storage, mobile, mechanical & travelogue. Use the exact code below and only change your domain and subdomain names. The back slashes and quotes are important and that what made it work.

    # Subdomains
    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/tv\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/fashion\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/storage\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/mobile\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/mechanical\/$1" [R=301,L]

    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ "http\:\/\/tipscow\.com\/travelogue\/$1" [R=301,L]

  5. If there are not many subsites, you can simply goto and edit the paths from “/” to particular “subdomains”.
    change subsites structure from subdomain to subdirectory

  6. If you have many subsites, you can update them using phpMyAdmin from your cPanel.

If you run into any issues, restore the backup and try again. If there are still any problems, discuss them here and I would be glad to help you.

Beginners Blogging Tips – Why, What, Where, How?

beginners blogging tipsAfter the decision to start a new blog, there comes a few questions what, where & how? So, here I come you great people to help you decide on why, what, where & how to blog questions with this post – Beginners Blogging Tips. The why part is already covered in 10 reasons to start blog, I posted earlier.

Recommended Read

Beginners Blogging Tips – The four questions

Why to Blog?

Well, it seems you haven’t read the 10 Reasons to Blog post. Have a look at it and come back to this post then.

What to Blog?

You must pick a topic. Remember that you need to deep dive into the thoughts before you finalize. It can be related to the work you do, the things that you like, etc.

For example:
If you are a software engineer with Microsoft Sharepoint, you can start a blog talking all about Microsoft sharepoint, it may contain tutorials, how to, resolutions common problems, etc.

If you are a housewife, you can write about kitchen tips, house hold work, cleaning, reading, writing (yes!), computer, kids or anything that a housewife can think of.

If you are a gamer, you can share the tips and news about the games that you like and you enjoy. You can share the game settings problems that people talk about or anything else related to game (but legal).

If you are a fitness freak, share the tips about exercises, diet plans, workout or any damn thing you like to talk or share about.

If you are a traveler or love travelling, talk about it. Share the great places you visited, the pictures you clicked, the hotel you stayed in, the food you loved, the places you recommend and on and on.

At first, the thought may come that you can do all of the above. True. But think for a longer term passion – choose the topic that you do most, you like the most. Because, if a gym trainer (fitness freak) starts writing about games, he may not be able to maintain it for long. Unless, if he really loves gaming. Certainly, every person like to play or has played sometimes in thier life. But that doesn’t mean they are passionate about it.

Where to Blog?

Choosing the right “where” is utmost important. Essentially, you need to have a domain & a webhost to host your domain. This is where you will have your blog hosted. Domain name plays an important role to. The domain name, related to your topic is better. However, people create any domain name sometimes their own name, or even a funny name. You need to check its availability before you can book it.

If someone is providing you the hosting for unbelievably low prices, ensure to cross check their brand in reviews on internet. Sometimes, they load their servers with lot of websites making each of them slower. My blog used to load very slow on a domain hosting company, but it is much better when I moved to Hostgator.

There are some free services like where you can create blogs free of cost but you have their blog url in yours and you may not have full control on assets, settings. Since, today, the hosting is available for so cheap prices, it is a good idea to start one of your own. Some sites like allows you to host with a premium service where you can have your own blog URL.

So, scan through multiple options using reviews before you finalize.

If you want help, please feel free to contact me – I would love to help, FREE of cost! You put a comment below to contact me.

Why would I do the free help?
The help won’t be free (you are not paying me directly. It works like this: You buy the hosting package through the links here – Hostgator or Bluehost and through the same standard amount that you any which ways pay to the company, I will get a small commission and I would treat it as a fees from your side. So go ahead, signup through the links I provided above and get my free service.

How to Blog?

Many blog publishing platform are available today. If you are on a PHP (Linux) environment, you can blindly go with choosing WordPress. If you are on a .Net (Windows) environment, you can go with MojoPortal (this is the one I used for my .net blog earlier).

Note that the Windows hosting environment can also run WordPress, as it supports PHP but Linux wouldn’t support .net (at least that’s what I know).

So, how you do it – with WordPress it’s very simple! You just need to have the wordpress installed and you are ready to publish the posts! WordPress has a huge forum and many plugins to help you find one to suit your need. You just need to think of a functionality search it on internet and you will find a plugin supporting that! Litreally, try it. Comment below if there is something you did not find, I and the readers of this blog would like to know in that case. At the same time there are lots of themes available to customize and a great support forum – you ask a question and many people are ready to help you free of cost.

If you need any help setting up the WordPress on your host or whatsoever, put a comment here and I would be glad to assist FREE OF CHARGE! Check my post on Quick Tips to improve WordPress site PageSpeed

The other CMS tool to publish blog you can use is MojoPortal. Joe is a great guy investing his time for the betterment of this tool. So, .net lovers can just jump into MojoPortal. It becomes easier for the developers who are .net specialized to extend it to customize according to their needs.

Some other popular blog publishing tool are Joomla, Drupal – But I have never used it so can’t comment.

I hope these blogging tips for beginners help you find the answers to your why, what, how & where. If anything is missed out, please feel free to get in touch.

Again, if you have any issues taking a decision or problems installing WordPress or difficulties in finding a Host or choosing a domain name, simply comment below and I shall I get back at no cost.