Upload a Portfolio an Redirect to a Url

Read Time: v mins Languages:

In this post, I'll prove you how to redirect a page or URL in WordPress. Y'all'll learn how to gear up automatic redirects, manual redirects, and wildcard redirects in WordPress.

Why Redirect Pages or URLs?

There are a number of times when you might demand to redirect a post, page, or URL in WordPress.

Perhaps y'all've inverse the slug for a post or page. Maybe yous've amended your permalink settings. Or maybe you lot've written a new post and want to redirect an old post to that.

In all of these cases, you lot'll demand to set a redirect. This tells browsers to go to the new URL instead of the old one.

To set up redirects, you'll demand to install a plugin. In this guide, I'thou going to evidence you lot how to exercise information technology with the Redirection plugin.

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

WhyNot Use Redirects?

Setting up redirects isn't ideal. It slows things downwards for the user, because the browser will go to the get-go URL, get the redirect message, then go to the second URL. And there is a risk that you'll gear up the redirect wrong, or simply forget to do it after changing a URL. Not only that, but links coming through a redirected folio aren't worth as much for SEO—Google just doesn't value them every bit highly.

And so it's a proficient idea to avoid changing your URLs altogether.

To minimize irresolute URLs, make certain you optimize them right from the start:

  • Configure your permalink settings to use pretty permalinks when you commencement fix your site and before y'all add any posts or pages.
  • Configure the slug for each postal service or page before y'all publish it. Make sure it'due south suitable both for search engine optimization (SEO) and for user experience (UX).
  • Simply if you haven't already washed this, and you need to redirect your URLs, how do you do it?

How to Set Upwardly Page and URL Redirects in WordPress

In that location are a few different kinds of redirect that you might want to prepare up for WordPress. The kinds you'll about likely be using are:

  • automated redirects
  • manual redirects
  • wildcard redirects

Let's accept a expect at each of these WordPress redirects.

Setting Upwards Automated Redirects

If yous haven't already installed the Redirection plugin for WordPress, do so now. When you first install the WordPress redirect plugin, it gives you the option to automatically track changes to URLs and to set up redirects. The link redirect maker plugin volition besides bank check the revisions to your existing posts and pages and prepare up redirects from old slugs you lot might have used for them.

In the screenshot below, information technology'south picked upwardly on a change to an existing post's slug and added a redirect from the old slug to the new one.

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

What if I make whatever changes to my slugs or URLs later on activating? The link redirect maker plugin will track those and automatically prepare up the redirect. Below, you tin can encounter the WordPress redirect plugin screen later on making more slug changes.

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

Setting Up Transmission Redirects

Sometimes, the WordPress redirect plugin won't pick up on the page redirect you demand. Possibly y'all want your WordPress site to redirect one post to another or you want to redirect a URL on your domain to a different domain.

In this case, you'll need to prepare a manual redirect without a plugin in WordPress.

Go to Tools > Redirection and scroll down to the Add new redirection section.

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

In the Source URL field, type or paste in the URL you lot want to redirect from. In the Target URL field, type or paste in the URL you want to redirect to. In the Group field, either exit it as Redirections (the default) or select Modified posts if you're directing from an old mail to a newer version. This will give browsers information telling them what kind of redirect it is.

Finally, click the Add together Redirect push and your manual redirect will be added to the list of redirects.

Setting Upward Wildcard Redirects

Use a wildcard redirect when you want to redirect a prepare of URLs which share certain elements. For example, if you change your permalink structure, a wildcard redirect will send anyone using a link from your one-time structure to the same link using your new structure.

If you've inverse your permalink structure for posts from /blog/post-name to /category/postal service-name, for example, you lot'll demand to use a wildcard redirect to ensure anyone using the quondam links is redirected to the new URL.

Wildcard redirects use something called Regex, which lets you create advanced redirects. You'll need to enable Regex functions kickoff to ready a wildcard WordPress redirect.

Become to Tools > Redirection and scroll to the Add together new redirection section of the screen.

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

In the Source URL field, type the onetime path to categories, with a wildcard. It needs to accept the grade /oldslug/(.*)$. The entry for Target URL needs to have the source /newslug/$ane. And then click the Add Redirect push button.

Conclusion

If you change the URLs in your WordPress site or create a new post to supervene upon an quondam 1, you'll need to set up a redirect. Depending on the changes you've made, you might use an automated redirect, manual redirect, or wildcard redirect. In this post, you lot learned how to create redirects for different circumstances.

The All-time WordPress Themes and Plugins on Envato Marketplace

Explore thousands of the all-time WordPress themes ever created on ThemeForest and leading WordPress plugins on CodeCanyon. Purchase these high-quality WordPress themes and plugins and meliorate your website experience for y'all and your visitors.

Popular WordPress themes on ThemeForest Popular WordPress themes on ThemeForest Popular WordPress themes on ThemeForest

Here are a few of the best-selling and up-and-coming WordPress themes and plugins available for 2021.

Editorial Note: This mail has been updated with contributions from Nathan Umoh. Nathan is a staff writer with Envato Tuts+.

Did y'all find this post useful?

riveratherad.blogspot.com

Source: https://webdesign.tutsplus.com/tutorials/how-to-redirect-a-page-or-url-in-wordpress--cms-35373

0 Response to "Upload a Portfolio an Redirect to a Url"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel