What is 301 Redirection

301 redirect is a permanent redirect through that website owner redirects old page to new permanently.

Google and other search engines also use new URL for listing. So all visitors and search engines redirect on new page. Google and other search engines also pass the 90% to 99% ranking on new URL too.

Basically 301 redirect is HTTP status code. Which is used to move the one page permanently on new page.

We can implement the 301 redirect through .htaccess or coding. In both methods we should define the OLD and New both urls.

New URL uses as a response of 301 HTTP code.

Let’s see this with an example.

If we have a website nitinmaurya.com and there is an OLD page that url is nitinmaurya.com/oldpage but now I have redesigned the website or whatever I did but new page URL has been changed nitinmaurya.com/oldpage to nitinmaurya.com/newpage. In that case we need to implement the 301 redirection.

We should avoid the chain redirection too as this will harm the SEO and this is bad for users too.

What is Google Click Identifier or gclid?

Gclid stands for Google Click Identifier. This parameter uses in Google Adwords. Google uses this to track the Adword click and their conversion using Google Analytic.

So gclid is just a parameter which uses with Google Analytic. It’s encoded value. In gclid google store the click time and adwords data which uses in Google Adwords Report.

So gclid is auto-tagging parameter, which is encoded with hash value and that map back to a specific AdWords.

This will be something like this:


gclid can contains the following values:

  • Campaign like UTM Source, keywords etc.
  • AdGroup
  • Search Query and many more..

Common Reasons of Slow Website Performance

There are the following reasons which make slow the websites:

1. Compressible Resources

All modern browsers support and automatically negotiate gzip compression for all HTTP requests. Enabling gzip compression can reduce the size of the transferred response by up to 90%, which can significantly reduce the amount of time to download the resource, reduce data usage for the client, and improve the time to first render of your pages.

2. Server Response Time

Server response time measures how long it takes to load the necessary HTML to begin rendering the page from your server, subtracting out the network latency between Google and your server. You should reduce your server response time under 200ms.

3. Inline CSS

Modern browsers block on external CSS before painting content to the screen. This incurs additional network latency and increases the time it takes to display content to the screen. To optimize the time to render, if the external CSS resources are small, you can insert those directly into the HTML document. Inlining small CSS in this way allows the browser to proceed with rendering the page.

4. Leverage Browser Caching

Fetching resources over the network is both slow and expensive: the download may require multiple roundtrips between the client and server, which delays processing and may block rendering of page content, and also incurs data costs for the visitor. All server responses should specify a caching policy to help the client determine if and when it can reuse a previously fetched response.

5. Unnecessary or redundant data

Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser – e.g. code comments and formatting, removing unused code, using shorter variable and function names, and so on.

6. Unoptimized Images

Images often account for most of the downloaded bytes on a page. As a result, optimizing images can often yield some of the largest byte savings and performance improvements: the fewer bytes the browser has to download, the less competition there is for the client’s bandwidth and the faster the browser can download and render content on the screen.

Currency Code dropdown for PayPal Payment Gateway

Sometimes we want to add dropdown in our code for Currencies, which supports by PayPal. Below dropdown code will help you and make your work easier. You can use below code in your WordPress, HTML or any language code. To use below code just Copy and paste below code where you want.

<select name="currency_code">
		  <option value="">Select Currency</option>
		  <option value="AUD">Australian Dollar</option>
		  <option value="BRL">Brazilian Real </option>
		  <option value="CAD">Canadian Dollar</option>
		  <option value="CZK">Czech Koruna</option>
		  <option value="DKK">Danish Krone</option>
		  <option value="EUR">Euro</option>
		  <option value="HKD">Hong Kong Dollar</option>
		  <option value="HUF">Hungarian Forint </option>
		  <option value="ILS">Israeli New Sheqel</option>
		  <option value="JPY">Japanese Yen</option>
		  <option value="MYR">Malaysian Ringgit</option>
		  <option value="MXN">Mexican Peso</option>
		  <option value="NOK">Norwegian Krone</option>
		  <option value="NZD">New Zealand Dollar</option>
		  <option value="PHP">Philippine Peso</option>
		  <option value="PLN">Polish Zloty</option>
		  <option value="GBP">Pound Sterling</option>
		  <option value="SGD">Singapore Dollar</option>
		  <option value="SEK">Swedish Krona</option>
		  <option value="CHF">Swiss Franc</option>
		  <option value="TWD">Taiwan New Dollar</option>
		  <option value="THB">Thai Baht</option>
		  <option value="TRY">Turkish Lira</option>
		  <option value="USD" SELECTED="YES">U.S. Dollar</option>

What are you able to Do to avoid malware?

  • Pay attention. The malware spreads once the user visits a malicious web site or opens AN infected email. These emails can generally attempt to get the user to enter in sensitive data. the most effective thanks to fight these emails is to ne’er open AN email that you simply don’t acknowledge, and to seem for an absence of personalization or insecure URLs.
  • Back up your files. You ought to continually have your knowledge secured in a minimum of 2 locations. For businesses, this suggests storing your vital files on a centralized server (NOT the workstation) and utilizing an answer like our Backup and knowledge Recovery (BDR) which will keep your knowledge secured firmly. Utilizing off-site and cloud backup solutions also are vital once considering your business continuity set up.
  • Keep your security software package updated. Continually is exploitation the most recent version of your security measures, as well as antivirus, firewalls, and net filtering software package. By doing thus, you’ll be taking valuable steps toward keeping your system at least risk.
  • Run frequent security scans. Check your system often for infection, and check that that nothing out of the standard is occurring inside your laptop. Most antivirus software package permits you to run a scan, which can inform you of any abnormalities.
  • Always keep your software system up-to-date. Change your software system is imperative to keeping your system’s vulnerabilities patched up and safe from threats. The aim of those updates is to stay your pc safe from new and rising threats (like Cryptolocker, for example), thus it’d be silly to not use them.

If you see malware affected screen, take the subsequent actions toward limiting the impact that the malware has on your system.

  • Disconnect your pc from the web, either by unplugging the wired association or disabling the wireless association.
  • Disconnect any storage device units, like USB units, and disable any cloud storage software package you’ll be exploitation.
  • Do not decide to take away the virus on your own. Contact the skilled technicians for help with removing the threat.

You can decide to restore your system employing a Windows Restore purpose, however we have a tendency to advocate taking no action till a technician will investigate.

How to change Upload folder path in WordPress

Sometimes you need to change the uploads folder path or you want to use another folder for this. It’s also a cool solution to stop hacking your WordPress website. It’s Just a one line code for your wp-config.php. Just open and paste the below code for this:

define( 'UPLOADS', '/wp-content/newfolder' );

User Friendly 404 page for website

When someone visiting on your website through external URL or any other resources and visitors do not find useful information related to search text or content related to a url, that page called 404 pages or page not found page.

In simple language what a page visitor view when they try to open non exists page or url called 404 page.

404 page is most important page for website. There are few reasons of 404 pages:

  • Someone try to open non existing url through external resources.
  • Your website have some links which do not exists in your website.
  • Someone trying random url though your website url.

In case if user do not find related information on your 404 page, so user will never return to your website. To keep busy visitor on your website you should have good content on your website but 404 pages should have some good content related to current URLs. So user will feel that your website is helping him to find what he searching for your website. So User friendly 404 pages are good options for your website.

For user friendly 404 page you should add some links of related content with good search option. So visitor will visit on other pages or search another things through search option.

Google does not penalty for 404 pages but you should keep visitors busy on your website so for a good user friendly website 404 page play an important role.

Somebody design 404 pages with amazing graphic and some nonsense text but these things does not help to your visitors. Unfortunately they will search for other options.

Types of Paypal

PayPal Standard is the basic type of PayPal. When this is enabled, the customer will have to fill out your store checkout and will be able to choose PayPal Standard in the Payment section. When they are sent to PayPal, they will be able to log in to their PayPal account or use a credit/debit card without having an account. The line items will be displayed on PayPal and the order will be submitted on their end, not your store’s.

PayPal Express requires the customer to have a PayPal account. When you enable this, it will display on both the View Cart page (as a button) and on the Checkout page (as a choice in the Payment section). When the customer is sent to PayPal, the line items will not be shown. The customer will be sent back to the store to choose their shipping method and will submit the order from the store’s checkout page.

PayPal Pro is considered a payment gateway. You would enable this is in the Credit Cards section of your Payment Settings. You would use this to accept credit cards on your site, and the customer would not know that PayPal is being used. When you set this up, you can either use the API signature or certificate. If you are going to also use PayPal Express, you will need to use the certificate.

PayPal Advanced is the newest type of PayPal integration. With PayPal Advanced, you can accept both PayPal and credit cards on your site. You can set it so that customers are sent to PayPal to pay, or you can give them the ability to pay with a credit card without ever having to leave your site. This type of PayPal will work with all other PayPal types, and since it’s not a payment gateway itself, you can have it enabled alongside a true payment gateway like Authorize.net.

Paypal Buy Now button example

This is an example of paypal Buy Now button. You can change fields value according to your need.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="nitinmaurya12@gmail.com" />
<input type="hidden" name="lc" value="IN" />
<input type="hidden" name="item_name" value="Demo" />
<input type="hidden" name="item_number" value="Demo001" />
<input type="hidden" name="amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="services" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="return" value="http://nitinmaurya.com" />
<input type="hidden" name="cancel_return" value="http://nitinmaurya.com" />
<input type="hidden" name="notify_url" value="http://nitinmaurya.com" />
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:<span class=" />NonHostedGuest" />
<input type="image" alt="PayPal – The safer, easier way to pay online." name="submit" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynowCC_LG.gif" />
<img alt="" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" border="0" />

For Sandbox form action will be:

In case if you are using Live Paypal then use below URL in your ipn file to get values

$ch = curl_init(‘https://www.paypal.com/cgi-bin/webscr’);

otherwise please use below url for sandbox
$ch = curl_init(‘https://www.sandbox.paypal.com/cgi-bin/webscr’);