How to Redirect a Page or URL in WordPress

On this put up, I’ll present you easy methods to redirect a web page or URL in WordPress. You’ll learn to arrange computerized redirects, handbook redirects, and wildcard redirects in WordPress.

Why Redirect Pages or URLs?

There are a variety of instances while you may must redirect a put up, web page, or URL in WordPress. That’s when a WordPress redirect web page is available in helpful. 

Possibly you’ve modified the slug for a put up or web page. Possibly you’ve amended your permalink settings. Or possibly you’ve written a brand new put up and wish to redirect an previous put up to that. 

In all of those circumstances, you’ll must be taught easy methods to redirect a put up in WordPress. This tells browsers to go to the brand new URL as an alternative of the previous one.

To arrange a WordPress redirect web page, you’ll want to put in a plugin. On this information, I’m going to indicate you easy methods to do it with the Redirection plugin. 

WordPress Redirect Tutorial Redirection pluginWordPress Redirect Tutorial Redirection pluginWordPress Redirect Tutorial Redirection plugin

Why Not Use Redirects?

Organising redirects isn’t supreme. It slows issues down for the consumer as a result of the browser will go to the primary URL, get the redirect message, after which go to the second URL. And there’s a danger that you just’ll arrange the redirect flawed or just overlook to do it after altering a URL. Not solely that, however hyperlinks coming by means of a redirected web page aren’t price as a lot for search engine optimization—Google simply doesn’t worth them as extremely.

So it’s a good suggestion to keep away from altering your URLs altogether. To reduce altering URLs, ensure you optimize them proper from the beginning:

  • Configure your permalink settings to make use of fairly permalinks while you first arrange your web site and earlier than you add any posts or pages.
  • Configure the slug for every put up or web page earlier than you publish it. Make certain it’s appropriate each for search engine marketing (search engine optimization) and for consumer expertise (UX).
  • However when you haven’t already completed this, and you have to redirect your URLs, how do you do it?

Learn how to Set Up Web page and URL Redirects in WordPress

There are just a few totally different sorts of redirect that you just may wish to arrange for WordPress. The varieties you’ll probably be utilizing are:

  • automated redirects
  • handbook redirects
  • wildcard redirects

Let’s check out every of those WordPress redirects.

Setting Up Automated Redirects

For those who haven’t already put in the Redirection plugin for WordPress, accomplish that now. If you first set up the WordPress web page redirect plugin, it provides you the choice to robotically observe modifications to URLs and to arrange redirects. The hyperlink redirect maker plugin can even verify the revisions to your current posts and pages and arrange redirects from previous slugs you may need used for them.

Within the screenshot beneath, it’s picked up on a change to an current put up’s slug and added a redirect from the previous slug to the brand new one.

Link Redirect Maker Plugin Tutorial automated slug change redirectLink Redirect Maker Plugin Tutorial automated slug change redirectLink Redirect Maker Plugin Tutorial automated slug change redirect

What if I make any modifications to my slugs or URLs after activating? The hyperlink redirect maker plugin will observe these and robotically arrange the redirect. Under, you’ll be able to see the WordPress web page redirect plugin display screen after making extra slug modifications.

Link Redirect Maker Plugin Tutorial redirection - multiple slugsLink Redirect Maker Plugin Tutorial redirection - multiple slugsLink Redirect Maker Plugin Tutorial redirection - multiple slugs

Setting Up Handbook Redirects

Generally, the WordPress redirect plugin gained’t decide up on the web page redirect you want. Possibly you need your WordPress web site to redirect one put up to a different otherwise you wish to redirect a URL in your area to a unique area, however the WordPress redirect plugin gained’t work for that.

On this case, you’ll must arrange a handbook redirect with out a plugin in WordPress.

Go to Instruments > Redirection and scroll right down to the Add new redirection part.

WordPress Redirect Tutorial add new redirectWordPress Redirect Tutorial add new redirectWordPress Redirect Tutorial add new redirect

Within the Supply URL area, kind or paste within the URL you wish to redirect from. Within the Goal URL area, kind or paste within the URL you wish to redirect to. Within the Group area, both depart it as Redirections (the default) or choose Modified posts when you’re directing from an previous put up to a more moderen model. This may inform browsers what sort of redirect it’s.

Lastly, click on the Add Redirect button, and your handbook redirect can be added to the listing of redirects.

Setting Up Wildcard Redirects

Use a wildcard redirect while you wish to redirect a set of URLs which share sure parts. For instance, when you change your permalink construction, a wildcard redirect will ship anybody utilizing a hyperlink out of your previous construction to the identical hyperlink utilizing your new construction.

For those who’ve modified your permalink construction for posts from /weblog/post-name to /class/post-name, as an example, you’ll want to make use of a wildcard redirect to make sure anybody utilizing the previous hyperlinks is redirected to the brand new URL.

Wildcard redirects use one thing referred to as Regex, which helps you to create superior redirects. You’ll must allow Regex features first to arrange a wildcard WordPress redirect.

Go to Instruments > Redirection and scroll to the Add new redirection part of the display screen.

Setting up a wildcard redirect with the Redirection pluginSetting up a wildcard redirect with the Redirection pluginSetting up a wildcard redirect with the Redirection plugin

Within the Supply URL area, kind the previous path to classes, with a wildcard. It must take the shape /oldslug/(.*)$. The entry for Goal URL must take the supply /newslug/$1. Then click on the Add Redirect button.

The Greatest WordPress Themes and Plugins on Envato Market

Discover 1000’s of the best WordPress themes ever created on ThemeForest and leading WordPress plugins on CodeCanyon. Buy these high-quality WordPress themes and plugins and enhance your web site expertise for you and your guests. 

Get Extra WordPress Assets

Now you know the way to redirect a URL in WordPress. Listed here are just a few of the best-selling and up-and-coming WordPress themes and plugins accessible for 2022.

Conclusion

For those who change the URLs in your WordPress web site or create a brand new put up to interchange an previous one, you’ll must arrange a redirect. Relying on the modifications you’ve made, you may use an computerized redirect, handbook redirect, or wildcard redirect. On this put up, you realized easy methods to create redirects for various circumstances.

Trending Merchandise
[product_category category=”trending” per_page=”8″ columns=”2″ orderby=”date” order=”desc”].

We will be happy to hear your thoughts

Leave a reply

MyStudioCafe
Logo
Compare items
  • Total (0)
Compare
0