Best Ways to Redirect Wordpress Site or Pages (303, 301, 404)

Are you seeking to create a redirect in WordPress? Not certain what a redirect is and why it is important? Don’t worry, we have got you included in this novice’s manual to WordPress redirects, we can cowl what a redirect is, a way to create a redirect in WordPress, why do you want, and when you should use redirects.

What is a Redirect in WordPress?

A redirect is a way in your website to send a short message to your reader’s browser and inform them that the web page they want to visit has been moved, so their browser can automatically point them to the brand new page of your preference.

There are numerous unique types of redirects inclusive of 301 redirects, 302 redirects, 307 redirects, etc.

However, to maintain this text simple and useful, we will handiest cowl 301 redirects as that’s the maximum crucial.

When do you need a 301 redirect in WordPress?

The number one reason to use 301 redirects is whilst your web site or a web page on your site has been moved, and also you need to point the person to a new web page instead.

This article concept came to us while one in all our readers asked us for a manner to redirect users from an old publish to a brand new submit.

  • You need to create a redirect while you are planning on deleting a submit or page in choose of the latest content.
  • You want to create a redirect when you are planning on converting the permalinks of your submit or web page.

How to Create Redirects in WordPress (the use of Plugins)

A simpler method to create and manage 301 redirects is by way of using one of the many WordPress redirect plugins. This permits you to set up redirects without ever writing a single line of code.

#1. Redirection


The only manner to add and control redirects in WordPress is via the usage of the Redirection plugin. Install and activate the plugin. Once activated, go to Tools » Redirection to set up your redirects.

Redirection plugin no longer simplest allows you to set up redirects, it also facilitates you to find out 404 errors on your WordPress site. You can then redirect the ones URLs to the appropriate vacation spot. See this tutorial on a way to tune 404 pages and redirect them in WordPress.

#2. Page Links to

Sometimes you could need to maintain a submit/web page, but redirect it to another publish or web page. This is where Page Links is available in reachable. This simple plugin provides a meta field in your publish edit display wherein you could enter the cope with of the brand new area where you need to send your customers.

#3. Simple 301 Redirect

Another smooth to apply plugin is Simple 301 Redirects. As the call shows, it makes 301 Redirects easy. Simple install and set off the plugin and then visit Settings » 301 Redirects to add your URLs.

Adding redirects the usage of Simple 301 Redirects plugin for WordPress

Now while putting in place 301 redirects the usage of a WordPress plugin is easy, it has some minor overall performance setback. Based in your WordPress website hosting company, your WordPress redirects maybe a chunk slower with the aid of a few microseconds.

Setting Up 301 Redirects in WordPress using .Htaccess

Using the net server configuration file.Htaccess, WordPress users can installation 301 redirects which are rapid.

Please remember that a small mistake to you.Htaccess code could make your WordPress web site inaccessible, and it may start displaying Internal Server Error.

That’s why it's miles important which you backup your .Htaccess report earlier than making any adjustments.

To edit yours.Htaccess report, you will want to connect to your website the use of an FTP customer. The .Htaccess record resides to your WordPress website online’s root listing.

If you can’t see your .Htaccess record there, you then want to force your FTP consumer to show hidden documents. (See why you couldn't discover.Htaccess file in your WordPress web site.)

You can edit.Htaccess report in any undeniable textual content editor like Notepad.

Here is a simple redirect, in which we're lo


oking to send a user visiting an vintage submit to a new publish.

RewriteEngine On

Redirect 301 /a-very-vintage-post/ http://yoursite.Com/a-very-new-put up/

You can add the code above ideally at the end of your .Htaccess file.

Comments

  1. We Provide Cheap Offshore Hosting – Cheap Offshore VPS – Offshore Dedicated Servers – Streaming Servers With DMCA ignored Guarantee.

    ReplyDelete

Post a Comment