Tag Archives: Redirects

How To Use Domain Redirects On cPanel Of Your Server Or Hosting?

Using domain redirects you can redirect an entire domain or selective links to a new domain or links to individual pages. While configuring a domain redirect on cPanel, you will notice that there are two types of redirect options; temporary redirect, and permanent redirects.

  • A 301 redirect i.e. permanent redirect means that you are directing the page permanently. It prompts the search engines and HTTP clients to update their caches to the new link. It simply indicates that the page has been moved to a new address permanently. This is useful when you move your website to a new domain.
  • A 302 redirect i.e. temporary redirect means Found, but it is mainly used to tell the search engines and HTTP clients that the page is temporarily redirected and will soon be available to the old address, so there is no need for them to update their caches, etc. This is useful while you are developing your website or working on a page.

To configure a redirect, simply log in to your SANGKRIT.net account and follow these steps:

  1. Open the products page
  2. Select your hosting or server
  3. Open your cPanel hosting account or select a cPanel of your server
  4. Scroll down to the Domains section and click the Redirects option
  5. Select Permanent (301) or Temporary (302) from the first dropdown
  6. Choose the domain you want to redirect
  7. In case you are redirecting a page, simply paste the URL of the page
  8. Add the new destination domain or URL including https:// or http:// protocol
  9. Click the Add button

You will also notice that there is a wild card redirect option present as a checkbox. Ticking this option will redirect all of a site’s pages to the same URL you have entered.

How To Redirect Error 404 Pages To A Custom URL In WordPress?

Error 404 pages are not considered good for SEO and also as per adsense terms & conditions you cannot display the adsense ads on 404 pages and hence it is always good to redirect these pages to your website’s home. In this tutorial we will explain you how you can redirect 404 to home or to a custom URL of your website or to a sub domain or even if you need you can redirect it to some external URL.

Continue reading How To Redirect Error 404 Pages To A Custom URL In WordPress?

Eggplant 301 Redirects: A Robust Interface For Creating & Validating Redirects In WordPress

Eggplant 301 Redirects is an simple, straight forward and easiest plugin for creating 301 URL redirects from your admin area dashboard. The plugins provides you same powerful features as you get in cPanel URL Redirects option. With this plugin you can redirect any of your blog post, page, media file, archive and everything else, even you can create custom URLs and redirect them to the address you want. All redirects starts working instantly as you click Save button and you can quickly add as many redirects you want.

Continue reading Eggplant 301 Redirects: A Robust Interface For Creating & Validating Redirects In WordPress

Creating Temporary And Permanent Redirects Using Apache

301 is a permanent redirect and 302 is a temporary redirect. 301 redirect is used when you want to redirect pages without penalizing them in search engines. And 302 redirect is used when you want to set up temporary redirect for keeping your page rank better in search engines. Learn more.

How To Set Up Permanent Redirect Using Apache ?

Open your site’s .htaccess file.

If there is no .htaccess redirect then create a new text file in your site’s root.

Add this line at the very end of your .htaccess file:

Redirect 301 /REDIRECT_PATH NEW_URL

Where:

REDIRECT_PATH = Directory path on your web server. And

NEW_URL = Is the path you want the pages redirected to.

Save the file and test your URL.

Example: 

Redirect 301 /tags/lamp/ https://www.sangkrit.net/tags/lamp/

How To Set Up Temporary Redirect Using Apache ?

Open your site’s .htaccess file.

If there is no .htaccess redirect then create a new text file in your site’s root.

Add this line at the very end of your .htaccess file:

Redirect 302 /REDIRECT_PATH NEW_URL

Where:

REDIRECT_PATH = Directory path on your web server. And

NEW_URL = Is the path you want the pages redirected to.

Save the file and test your URL.

Example:

Redirect 302 /tags/lamp/ https://www.sangkrit.net/tags/lamp/

Difference Between Permanent And Temporary Redirects

301 redirect is a permanent redirect whereas 302 is a temporary redirect. Permanent redirects tell search engines that old URL is out so that they can pull this new URL in it’s place. 301 is used when you want to preserve the page index and keep the page rank.