Category: Wordpress

Moving WordPress from Sub-Directory to Root Directory EASILY

Moving WordPress from Sub-Directory to Root Directory

Moving WordPress: Moving Your Site From a Subdirectory to the Root Directory


Reasons why Sub-Directory is used in website development

  1. Many clients want developer to show mockup website design or demo of the website ,so Sub-Directory or subdomain is mostly used by web developer .so if you are web developer you must have already installed WordPress website,HTML,PHP,ETC on Sub-Directory or subdomain
  2. Sub-Directory WordPress website doesnt interfere with LIVE site .so even if there are 1ooo errors on the Sub-Directory say ,still the LIVE site say will be without any error
  3. Sub-Directory WordPress website helps you add user defined path instead of default WordPress login path ,so if default WordPress login path is say which any HACKER can easily guess and can easily HACK your website .To avoid that you can always install WordPress website in a Sub-Directory say .So your login path will give you extra security.


Follow below wordpress tutorial for Moving WordPress from Sub-Directory to Root Directory easily –


Suppose you have made Sub-Directory wp for developing a new WordPress website at say for example,so  the full path of  your new WordPress website along with Sub-Directory will be  where wp is the name of Sub-Directory where we have installed new WordPress website.


Its very easy to move WordPress website installed at where wp is the name of Sub-Directory  to the root which is  say  here.

Step 1-Turn off Permalinks

To start you will have to go to Settings > Permalinks  of this WordPress

Next choose Plain radio button to turn off Permalinks

Click the Save changes button and move on to the next steps

Below image example shows how to choose Plain radio button to turn off Permalinks  in https://localhost/ localhost environment

DEFAULT permalinks

Step 2-Change Site Address (URL) only

Next go to Settings > General, change the address of your  Site Address (URL)   but keep the address of WordPress address (URL) unchanged. For example,

By default it will be shown as below


  • WordPress address (URL):
  • Site Address (URL):


After Changing above Site Address (URL) to you will get below

  • WordPress address (URL):
  • Site Address (URL):


Below image example shows how to change Site Address (URL)

Changing wordpress Site Address URL


Click the Save changes button and move on to the next steps

Step 3-Copying index.php,.htaccess Files to the root directory

Next using FTP or CPanel file manager, copy (don’t move) the following files from your WordPress sub directory i.e wp to the root directory:

Copying the Files

  • index.php
  • .htaccess, if you have one. If there isn’t an .htaccess file (and the fact that you’ve turned off pretty permalinks means you’re less likely to have one), don’t worry about creating one—just skip this step.

Step 4-Editing index.php Files

 require (‘./wp-blog-header.php)
And change above bold  text to below bold text
require (‘./subdirectoryname/wp-blog-header.php)
So if you’ve been developing your WordPress website here, then just change the line to:
require (‘./wp/wp-blog-header.php)
as shown in below image
Editing index.php
Now Save the new index.php file .
This will complete our wordpress tutorial of Moving WordPress from Sub-Directory to Root Directory


VIDEO HELP for Moving WordPress from Sub-Directory to Root Directory

Let us know if you have doubts we will solve ASAP


Tutorial Backing,Upgrading WordPress Manually/Automatically using ftp filezilla,Cpanel,Plugins

Upgrading WordPress Manually/Automatically using ftp filezilla/Cpanel/Plugins


Reasons why Manually Upgrade wordpress website?

Every one today want upgraded lifestyles same applys to wordpress website ,so if you want your wordpress website to work on latest technology compare to say 1990 year old wordpress technology then you will surely understand the importance of upgrading wordpress technology.

I hope you all love todays upgraded lifestyles compare to say 1990 year old lifestyles which has its problems

Manually Upgrade wordpress website

Advantage of Upgrading wordpress website

Old wordpress upgrade are easily hackable compared to latest  wordpress Upgrade.

wordpress adds more ADVANCE features and improve wordpress users experience like in wordpress dashboard admin section.

Best free wordpress themes ,best wordpress plugins  are added also wordpress app is updated with more ADVANCE features that improve wordpress users experience.

Many wordpress tutorial instructions are added for Upgrading wordpress technology via and for increasing knowledge for the newly upgraded wordpress version


Why Back Up WordPress website before Upgrading WordPress website?

The answer to Backing Up WordPress website is simple that is to have duplicate copy of your website if something goes wrong during Upgrading WordPress website process.

So how to start Back Up of WordPress website ?

There are manual ways and Automatic ways to Back Up of WordPress website

1.Manually Backing Up Your WordPress Database 

The first step is to login to your Cpanel ,Cpanel url is in this format where is your website url.After logging in your Cpanel url example and head to the File Manager as shown in below image, then navigate to the PhpMyAdmin section in cpanel as shown in below image.

wordpress phpmyadmin database backup


Next click the PhpMyAdmin  which will backup your website database automatically and easily

You will see the PhpMyAdmin screen as shown below ,select your website database ,so I will select  database wp database as shown below

wordpress phpmyadmin database backup

Now select export tab button you will see the PhpMyAdmin screen as shown below


phpmyadmin database backup tutorial

Now select quick option and then Go option to start WordPress database backup

That’s all, you have successfully made a manually WordPress database backup using PhpMyAdmin.

2.Manually Backing Up Your WordPress files and folder using FTP or Cpanel, the steps:

The first step is to log in to your Cpanel ,Cpanel url is in this format where is your website url.After logging in your Cpanel url example and head to the File Manager as shown in below image, then navigate to the root directory of your website.

file manager cpanel tutorial


First make folder and name it FOLDERA ,Next go to folder were you have installed WordPress  in your hosting where you will see all  WordPress files and folders as shown in below image .

wordpress cpanel file manager

Now just click on  select all as shown in below image to select all WordPress files and folders  and press copy to copy all WordPress files and folders to our desired destination / FOLDERA .This will automatically copy all WordPress files and folders to our desired destination / FOLDERA.

 select all WordPress files and folders

This finish wordpress tutorial to do emtire FILEs BACKUP of WordPress files and folders.



1.Automatically Back Up Your whole WordPress website

You can also backup your WordPress website by installing best backup plugin like BackWPup readily available on the plugin directory.

To install the BackWPup plugin, login to your WordPress site as an admin, then

  1. Click on “Add New” under Plugins
  2. Search for “BackWPup”
  3. Click “Install Now”  as shown in below image

Install BackWPup WordPress backup plugin

Go to the BackWPup plugin’s Settings page after installing the BackWPup plugin  as shown in below image

BackWPup plugin Settings page

Configure backwpup settings  as shown in below image

  1. Click the “Settings” link in the top-right menu
  2. Change the email address to be your own email address if needed. By default your admin email will be used.
  3. Change “0” to “7” to save the last 7 log files.
  4. Click “Save Change”


configure backwpup settings


Create manual backup Job in  backwpup

backwpup job settings

  1. Click “Jobs”
  2. Click “Add New”
  3. Lets give name for our Jobs as Manual Backup
  4. Uncheck the checkbox which says “Only send an e-mail if there are errors.”  . If you want the notification you can check the checkbox as per your requirement.
  5. Click “Save Changes”
  6. Click the “Jobs” link to go back to the jobs listing screen

manual backup Job

Next Click the “Run Now” link under the job you just created  as shown in below image

manual backup backwpup job

It will start Backwpup job  as shown in below image

backwpup job running

You can ignore warning if its not important ,this will finish our backup wordpress tutorial using wordpress plugin




How to start Upgrading WordPress Manually?

1.Upgrading WordPress Manually using ftp filezilla

The first step is to go to official WordPress  download page to  download the latest Zip file of WordPress and extract it to a folder of your choice.

Don’t forget to backup all the WordPress files in the root directory including dot files like the .htacess file. Do check whether all of your backups are ok or not, most of the times incomplete or erroneous downloads lead to corrupted backups. Also make sure to open up your .sql files of the database in an editor so as to make sure that all of the required tables are present or not.

Now  Deactivate all your active WordPress plugins on your WordPress installation.

Next delete the two directories with name wp-includes  and the wp-admin folder ,but Do not Delete the following files: wp-config.php, wp-content folder.

how to update wordpress manually via ftp

If you feel your site is hacked then only delete  /plugins/ folder located here wp-content/plugins/ along with /themes/ folder located here wp-content/themes/

You can delete the required two directories with name wp-includes  and the wp-admin folder by logging via FTP using Filezilla or from the File Manager in your Cpanel or by using SSH to log in to your server using Putty or some other program and then send a command to delete those directories or specific files.

Next start uploading all of the new files that you got from the newly downloaded Zip from as shown in below images.

how to manually update wordpress using ftp

Open wp-config.php copy all content & paste in wpconfigsample.php  and rename files wp-config-sample.php as wp-config.php

If there is no  wp-config-sample.php file then directly upload wp-config.php file which completes our manual backup.

2.Upgrading WordPress Manually using wordpress dashboard admin section.

Now  go  to wordpress admin login page via and navigate to, in case your website is installed in a directory then use the directory specific URL.

Now press update now as shown in below images to start updating  wordpress website



After updating if you are unable to log in in your  wordpress website then clear the cookies of your browser.

After updating wordpress website to the latest version of WordPress

3.Upgrading WordPress Automatically using wordpress Plugin.

Now is the time is to update your plugins so navigate to and press update to start updating  wordpress plugins as shown in below images .

Upgrading WordPress Plugins

Update WordPress Plugin Manually


That’s all, you have successfully made a Automatically WordPress update using using wordpress Plugin.

Let me know your questions in your upgrade journey by commenting your doubts! ,you can also email us your budget /skype us-bpshbp if you need our expert services in your budget.




WP Social SEO Booster Plugin Microdata Settings-Top SERP Visibility

WP Social SEO Booster- Knowledge Graph Social Signals SEO Plugin best settings


Are you looking for a Huge Boost in Google Rankings to top in search engine results page  (SERP)  with the help of Microdata or

Do you want to improve Blog’s Social SEO  in Google, Twitter,Facebook  for increased connections,shares?

Then WP Social SEO Booster FREE plugin is undoubtedly the best plugin for you to get a Huge Boost in Google Rankings! in no time

WP Social SEO plugin is the only Wordpress plugin which does include ALL the different types of microdata which are supported by Google.

It adds Facebook Open Graph, Twitter Card and Google Rich Snippets (Microdata /  for Reviews, Products, Business, People, Recipes, Software, Videos, Events. etc. to your site to boost your sites search engine visibility.


3 Reasons why you should use WP Social SEO FREE WordPress plugin Immediately



Below is a screenshot after you start using WP Social SEO Booster – Knowledge Graph Social Signals SEO plugin

WP Social SEO Booster – Knowledge Graph Social Signals SEO



Also the Below screenshot shows how many bigger brand are using Google Rich Snippets (Microdata / technique to improve click through rate and boost there sales.


Google Rich Snippets Microdata Reference


The Below screenshot easily explains difference why Google Rich Snippets (Microdata / Make Your Content More Clickable ,so start using  WP Social SEO Booster FREE plugin to rank top in search engine results page

WP Social SEO Booster Knowledge Graph Social Signals SEO


so by just installing WP Social SEO plugin FREE plugin & doing below simple settings you will be able to boost Google Rankings easily.


Step 1

After installing FREE plugin WP Social SEO Booster ,just go to General & Performance Setting of WP Social SEO Booster  pluginto get the below screen.

On performance setting you will see cleanup header, that will clean up your header,so select that option . In the Dashboard widget option it is not recommended to select that option.If you want to add the HTML5 Boilerplate optimized performance entries to your site’s .htaccess file then select the check box option of HTML5 boilerplate .htacess . This will improve more security to your site.


WP Social SEO Booster General Performance Setting

Step 2

On next setting option, you will see options for Facebook Open Graph to fillup the data.It is better to keep this default for all post, so you can fillup Facebook App id ,Facebook  Admins,etc .

To get Facebook App id ,Facebook  Admins,etc details you will need to create app here

You also can add separate Facebook App id ,Facebook  Admins entry for each post on post page for motoring each page.


WP Social SEO Booster Facebook Open Graph Setting

Step 3

Google Authorship Markup & Star rating Setting

In the Next step, you will see below Google authorship markup setting. Choose homepage author and add Google plus publisher URL. so each are owner of the blog, will have unique Google plus author URL there. so it is recommended to add your own Google plus author URL there.
Google Authorship Markup & Star rating Setting WP Social SEO Booster


Step 4

WP SEO Booster Star Rating  Setting

In the Next step, you can set star rating shown on homepage, post page, as below .On last option about flush rating, if you want to setup new Star Rating for Post or Page only then you must use this option to flush all old rating .Else it is not recommended to flush all previous rating from post and pages as because will not be able to restore Star Rating  which is big flaw.

Below image shows Star Rating Setting when you are posting new post or Page . You can choose placement of that star rating on your post, with animation, unique rating option as per your requirement.
WP SEO Booster Star Rating Post Page Setting

Step 5

WP Social SEO Booster – Boost SERP Visibility with Microdata

WPSocial SEO Booster gives you option to give reviews for product, business, people, recipes, software, video and event markup.So whenever you start writing  about software, you can choose software from the menu.. If you are writing about business, you can choose accordingly.

After publishing your post, you can check it at Structured Data Testing Tool and enter URL of your published post and click on preview. It will show you the result. Below screenshot explains how you can do Structured Data Testing Tool of your own website  .


WP Social SEO Booster Boost SERP Visibility with Microdata


How to specify a vary accept-encoding header Quickly-Gtmetrix Tips

How to specify a vary accept-encoding header in wordpress-


Why to specify a vary accept-encoding header in wordpress?

Gtmetrix explains Bugs in some public proxies that don’t support compression may lead to compressed versions of your resources being served to users . So to instructs the proxy to store both a compressed and uncompressed version of the web resources Specifying the Vary: Accept-Encoding header is necessary.

how to specify a vary accept-encoding header

How to specify a vary accept-encoding header in wordpress-Gtmetrix Tips ?

*Note download  .htaccess file or copy code inside  .htaccess file in your notepad to restore incase of failure

  • Go to file manager in your hosting cpanel
  • Locate your files here  /public_html/.htaccess
  • For multiple hosting website Locate your files here  /public_html/website folder/.htaccess
  • Now Add the following  line of codes in your .htaccess file mostly at the  Beginning or at the End  inside .htaccess file:

If your server is Apache paste below code inside .htaccess file

<IfModule mod_headers.c>
  <FilesMatch ".(js|css|xml|gz|html)$">
    Header append Vary: Accept-Encoding

If your server is Nginx paste below code inside .htaccess file

gzip_vary on

If your server is IIS paste below code inside .htaccess file

    <remove name="Vary"></remove>
    <add name="Vary" value="Accept-Encoding"></add>
Now test your website in you will see your website has improved lot If you have any questions or problem with above task, please comment below. Thanks