Redirect a Web page or URL in WordPress (2 Strategies)

by | Jun 5, 2024 | Etcetera | 0 comments

Do you wish to have to redirect a internet web page or URL in WordPress?

When a shopper follows a link to your internet website online that leads to a internet web page that doesn’t exist, they’ll see an error message. This poor client experience may also be frustrating for your visitors and prevent them from turning into clients or consumers.

In this article, we’ll show you learn to restore broken links by means of redirecting pages and URLs in WordPress.

How to Redirect a Page or URL in WordPress

Why Redirect a Internet web page or URL in WordPress?

Links imply you’ll connect similar pages to your WordPress internet website online. They be in agreement visitors navigate your web site and allow search engines like google and yahoo to easily to find and index your content material subject matter.

On the other hand, damaged hyperlinks lead to a URL that doesn’t exist to your internet website online. When this happens, a frustrating 404 ‘Internet web page Not Came upon’ error message turns out.

404 Page Example

This provides a poor client experience and would in all probability negatively affect your search engine marketing.

It may be that the web internet web page was once deleted, the internet web page’s URL was once changed, or the one that created the link simply typed the improper URL.

Thankfully, you’ll merely monitor 404 mistakes and redirect the URLs to pages that do exist.

With that being mentioned, let’s take a look at learn to redirect a internet web page or URL in WordPress. We’ll cover two methods:

Approach 1: Creating Redirects Using All in One SEO (AIOSEO)

The most simple solution to redirect pages and URLs in WordPress is using the All in One search engine marketing (AIOSEO) WordPress plugin. It’s the very best search engine marketing plugin for WordPress and provides a powerful Redirection Manager addon that makes it truly simple to prepare redirects.

Phrase: You’ll need AIOSEO Professional to use the redirection manager. There is also a loose model of AIOSEO, but it doesn’t include 301 redirects.

The first thing you wish to have to do is about up and configure the AIOSEO Skilled plugin to your internet website online. For step-by-step directions, see our knowledge on learn how to arrange All in One search engine marketing accurately.

See also  Divi 5 Development Replace: Kicking Off The New 12 months

After that, it is very important flip at the Redirect Manager addon. Simply go to All in One SEO » Redirects and click on at the ‘Activate Redirects’ button.

Activate AIOSEO Redirects

After all, it is very important click on on on the ‘Settings’ tab to select a redirect method.

We recommend the ‘PHP’ risk on account of it’s the most straightforward and doesn’t require technical configuration of your web server.

Select the Redirect Method

Now you are ready to redirect your WordPress pages. You’ll be capable to do this using the AIOSEO Redirection Manager or the WordPress content material subject matter editor.

Creating a Redirect From the AIOSEO Redirection Manager

When you find yourself however on the All in One SEO » Redirects internet web page, you’ll navigate once more to the ‘Redirects’ tab. This internet web page allows you to organize your redirects and add new ones.

So to upload a brand spanking new redirect, you wish to have so that you could upload the publish slug of the URL that isn’t working. The slug is the part of the URL that comes after your internet website online’s house determine.

Let’s check out an example. The full URL of a submit or internet web page turns out like this:

https://example.com/old-coffee-link-is-broken/

In this case, the submit slug is the last phase of the URL:

/old-coffee-link-is-broken/

You need to type or paste the submit slug of the broken link throughout the ‘Provide URL’ field like this:

Enter a Source URL in AIOSEO Redirection Manager

Tip: You’ll be capable to redirect a few provide URLs to the an identical function URL. Simply click on at the ‘Add URL’ button so that you could upload an extra ‘Provide URL’ field.

Next, you wish to have to enter the submit slug of the existing internet web page that you simply wish to redirect the URL to. You need to type or paste this into the ’Purpose URL’ field.

Enter a Target URL in AIOSEO Redirection Manager

On the other hand, you’ll simply type part of the internet web page’s title and AIOSEO will show an inventory of matching posts and pages.

Each time you click on on on the right kind submit, the slug may well be entered for you.

Typing the Title of the Target Page in AIOSEO Redirection Manager

The last step is to select a redirect type.

Make sure that the ‘301 Moved Utterly’ redirect type is selected and then click on at the ‘Add Redirect’ button.

Make Sure the 301 Redirect Type is Selected in AIOSEO Redirection Manager

Now, you’ll scroll proper all the way down to view a log of the redirects you will have created.

The ‘Hits’ column shows the amount of people who visited the redirected link, and there’s a toggle way to permit or disable specific individual 301 redirects.

See also  WordPress Upkeep – Final Information for Inexperienced persons (2024)
Log of Redirected Pages in AIOSEO Redirection Manager

Creating a Redirect From the WordPress Content material subject matter Editor

You’ll be capable to moreover use All in One SEO to redirect a published submit or internet web page when you find yourself editing it.

While you scroll to the bottom of the WordPress editor, you’ll to find an AIOSEO Settings phase. You need to click on at the ‘Redirects’ tab.

Redirecting a Post or Page From the Content Editor Using AIOSEO

Proper right here you’ll to find the an identical redirection alternatives that we covered above. The provision URL has been crammed in for you, and you wish to have so that you could upload the target URL.

After that, ensure that the ‘301 Moved Utterly’ redirect type is selected, and then click on at the ‘Add Redirect’ button.

A useful All-in-One SEO serve as is that if you business a submit’s permalink while editing it, AIOSEO will automatically redirect the former URL to the new one.

Approach 2: Creating Redirects Manually by means of Enhancing .htaccess

You’ll be capable to moreover redirect a internet web page or URL without using a plugin. To do that, you wish to have to manually add code to your internet website online’s .htaccess document. The program isn’t suitable for beginners on account of a small mistake can damage your internet website online.

Previous than using the program, we strongly counsel creating a backup of your .htaccess document.

After that, you’ll make changes to the document using All in One SEO’s editor tool or edit it immediately using FTP or your hosting provider’s document manager.

Enhancing .htaccess Using All in One SEO’s .htaccess Editor

The All in One SEO plugin supplies an easy solution to edit your .htaccess document. On the other hand, you’ll need All in One search engine marketing Professional to use the .htaccess editor.

After getting put in and configured AIOSEO, simply navigate to the All in One SEO » Apparatus internet web page. Next, you’ll have to switch to the ‘.htaccess Editor’ tab.

Editing .htaccess File Using All in One SEO

This internet web page will show the contents of your .htaccess document. You need to stay your redirect code at the bottom of the document after the ‘# END WordPress’ line.

Proper right here is a simple redirect where we’re in quest of to send a shopper visiting an earlier submit to a brand spanking new submit.

RewriteEngine On
Redirect 301 /thisistheoldurl/ http://yoursite.com/thisisthenewurl/

Keep in mind to business the former submit and new submit URLs.

After getting achieved this, click on at the ‘Save Changes’ button at the top of the internet web page to exchange the .htaccess document with the new code.

Enhancing .htaccess Instantly

You’ll be capable to moreover edit the .htaccess document immediately without the desire for a plugin. To take a look at this, you wish to have to connect with your internet website online using an FTP shopper or your hosting provider’s document manager.

See also  ⏱️ Time-Saving Guidelines: The use of AI to Streamline Divi Site Building

You’ll to find the .htaccess document for your internet website online’s root record. Will have to you don’t see it there, then talk over with our knowledge on why you’ll’t in finding .htaccess record for your WordPress website online.

You may be able to edit the document using the document manager’s Edit serve as. Another way, you’ll download .htaccess to your computer and edit it using a textual content editor like Notepad.

You’ll have to paste the following redirect code at the end of your .htaccess document after the ‘# END WordPress’ line.

RewriteEngine On
Redirect 301 /thisistheoldurl/ http://yoursite.com/thisisthenewurl/

Don’t overlook to modify the former submit and new submit URLs.

Edit .htaccess File

Keep in mind to save lots of your changes, and if essential, upload the .htaccess document once more to the server.

Now, you’ll check out your redirect to ensure it’s redirecting as it should be as you supposed.

Now that you know the way to redirect pages and URLs, it is advisable to like to look each different guides related to redirection in WordPress:

We hope this instructional helped you learn how to redirect a internet web page or URL in WordPress. You might also wish to see our knowledge on the variation between 302 and 301 redirects, or our skilled make a choice of the most efficient WordPress redirect plugins.

Will have to you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be capable to moreover to find us on Twitter and Fb.

The submit Redirect a Web page or URL in WordPress (2 Strategies) first seemed on WPBeginner.

WordPress Maintenance

[ continue ]

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!