WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Beginners Guide» Beginner’s Guide to Creating 301 Redirects in WordPress (Step by Step)

Beginner’s Guide to Creating 301 Redirects in WordPress (Step by Step)

Last updated on February 22nd, 2019 by Editorial Staff
393 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
Beginner’s Guide to Creating 301 Redirects in WordPress (Step by Step)

Are you trying to create a redirect in WordPress? Not sure what a redirect is and why it is important? Don’t worry, we have got you covered in this beginner’s guide to WordPress redirects, we will cover what a redirect is, how to create a redirect in WordPress, why do you need, and when you should use redirects.

Ready? Let’s get started.

Website Redirects

What is a Redirect in WordPress?

A redirect is a way for your website to send a quick message to your reader’s browser and tell them that the page they want to visit has been moved, so their browser can automatically point them to the new page of your choice.

There are various different types of redirects such as 301 redirect, 302 redirect, 307 redirect, etc.

However to keep this article simple and useful, we will only cover 301 redirects as that’s the most important.

Let’s take a look at why it is important by understanding the use case.

When do you need a 301 redirect in WordPress?

The primary reason to use 301 redirects is when your site or a page on your site has been moved, and you want to point the user to a new page instead.

This article idea came to us when one of our readers asked us for a way to redirect users from an old post to a new post.

– You need to create a redirect when you are planning on deleting a post or page in favor of new content.

– You need to create a redirect when you are planning on changing the permalinks of your post or page.

Why? Because not creating a redirect will cause your users to see a 404 not found error. Which is not only bad for users, but it can also impact your site’s SEO and hurt your search engine rankings.

That’s when 301 redirects become very important.

It allows you to tell search engines and your user’s browser that the page they are trying to reach has been permanently moved to a new location.

This allows for all your old page’s traffic and backlink (SEO) strengths to be transferred on to the new page.

Now that we have covered the why and when of redirects, let’s take a look at how you can create 301 redirects in WordPress using the different methods that are available.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

How to Create Redirects in WordPress (using Plugins)

An easier approach to create and manage 301 redirects is by using one of the many WordPress redirect plugins. This allows you to setup redirects without ever writing a single line of code.

1. Redirection

The simplest way to add and manage redirects in WordPress is by using the Redirection plugin. Install and activate the plugin. Once activated, visit Tools » Redirection to setup your redirects.

Setting up WordPress redirects using Redirection plugin

Redirection plugin not only allows you to setup redirects, it also helps you find out 404 errors on your WordPress site. You can then redirect those URLs to an appropriate destination. See this tutorial on how to track 404 pages and redirect them in WordPress.

2. Page Links to

Sometimes you may want to keep a post/page, but redirect it to another post or page. This is where Page Links to comes in handy. This simple plugin adds a meta box on your post edit screen where you can enter the address of the new location where you want to send your users.

Adding redirect link in post editor

3. Simple 301 Redirects

Another easy to use plugin is Simple 301 Redirects. As the name suggests, it makes 301 Redirects simple. Simply install and activate the plugin and then visit Settings » 301 Redirects to add your URLs.

Adding redirects using Simple 301 Redirects plugin for WordPress

Now while setting up 301 redirects using a WordPress plugin is easy, it has some minor performance setback. Based on your WordPress hosting provider, your WordPress redirects maybe a bit slower by some microseconds.

If you want to make your redirects faster, then you can do so by using the code method and .htaccess file.

Setting Up 301 Redirects in WordPress using .htaccess

Using the web server configuration file .htaccess, WordPress users can set up 301 redirects that are fast.

Please keep in mind that a small mistake in your .htaccess code can make your WordPress site inaccessible, and it may start showing Internal Server Error.

That’s why it is important that you backup your .htaccess file before making any changes.

To edit your .htaccess file, you will need to connect to your website using an FTP client. The .htaccess file resides in your WordPress site’s root directory.

If you can’t see your .htaccess file there, then you need to force your FTP client to show hidden files. (See why you can’t find .htaccess file on your WordPress site.)

You can edit .htaccess file in any plain text editor like Notepad.

Here is a simple redirect, where we are trying to send a user visiting an old post to a new post.

RewriteEngine On
Redirect 301 /a-very-old-post/ http://yoursite.com/a-very-new-post/

You can add the code above preferably at the end of your .htaccess file.

That’s all. We hope this beginner’s guide to creating WordPress redirects helped you setup redirects on your site.

You may also want to check out these 9 most useful .htaccess tricks for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

393 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

  • How to Start Your Own Podcast (Step by Step)

    How to Start Your Own Podcast (Step by Step)

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

140 Comments

Leave a Reply
  1. hamada says:
    Jul 8, 2020 at 3:40 am

    i have made redirection with plugin “Redirection”then i deleted the redirection item from Redirection’s setting ,but i want to get it back the same what should i do

    Reply
    • WPBeginner Support says:
      Jul 8, 2020 at 11:51 am

      The simplest method would be to recreate the redirect rather than attempting to restore it.

      Reply
  2. Esmaeil says:
    Jul 5, 2020 at 1:55 pm

    I have transfer my site from a domain to a brand new domain. how can I do the 301 redirect without entering address by address?
    I mean I want to define something like this : all URLs of example.com goes to example.net for example.
    thank you so much in advance.

    Reply
    • WPBeginner Support says:
      Jul 7, 2020 at 12:52 pm

      You would want to take a look at the redirect in our article below:
      https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-wordpress-to-a-new-domain-without-losing-seo/

      Reply
  3. Tim says:
    Jun 19, 2020 at 2:56 pm

    I have the redirects set up and working great, but I have a question about finding and replacing all these redirected urls.

    Is there a way to find/replace them across your complete WordPress site? Not just within the WordPress database, but also within personal HTML code, and urls within tables using TablePress added to the website.

    I’m looking for a global find/replace solution, is there one?

    Reply
    • WPBeginner Support says:
      Jun 22, 2020 at 1:27 pm

      You could either use an analytics tool to find where the link is on your site or you could take a look at a plugin from our previous article below:
      https://www.wpbeginner.com/plugins/search-and-replace-plugin-for-wordpress-database/

      Reply
  4. Diana says:
    May 7, 2020 at 6:27 pm

    Is there any chance I can implement 301 in free WordPress.com? It says I’m not allowed to install plugins. Only if I’m on business plan. And I want to migrate to WordPress.org

    Reply
    • WPBeginner Support says:
      May 8, 2020 at 9:55 am

      For moving your site from WordPress.com to org you would want to go through our guide below: https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-your-blog-from-wordpress-com-to-wordpress-org/

      Reply
  5. Farukh Hussain says:
    May 7, 2020 at 2:08 pm

    Hi,

    I have done a redirect some time ago using ‘Redirection’ plugin.

    But now I cant find that url in the plugin. Even there is no code for that url in htaccess file too.

    I want to disable that redirect now. Is there any way to do this? Pls help?

    Reply
    • WPBeginner Support says:
      May 8, 2020 at 9:58 am

      If the redirect is not in the plugin, you would want to check your htaccess file or reach out to your hosting provider for their assistance with finding the redirect.

      Reply
  6. Ginger says:
    Apr 16, 2020 at 3:56 pm

    If I’m redirecting several web pages (not posts), do I make duplicates of the code you showed above (both lines 1 and 2) for each of the new page I am redirecting? And do I keep copying those codes at the bottom of the .htaccess file?

    I read another article that suggests adding redirection codes in the functions.php file in the theme folder. The code is long and seems complicated. But I wonder, which option is more efficient — editing the .htaccess or editing the functions.php?

    Reply
    • WPBeginner Support says:
      Apr 17, 2020 at 10:55 am

      You would add a new version of the second line of code, you only need the first line once. For where the redirect happens it is personal preference on which method is best.

      Reply
  7. Lindsey says:
    Nov 5, 2019 at 8:39 am

    Hi

    Apparently my site has a 301 redirect on it, but I cannot discover where this is, nor what it is redirecting. There is nothing in the htaccess file. The site was originally built using a different name on localhost, and all the urls were changed to become the new domain name. Could this be the problem? How do I track down where the 301 is because it is causing problems with the SSL certificate. Thanks

    Reply
    • WPBeginner Support says:
      Nov 5, 2019 at 10:43 am

      Updating the urls shouldn’t be an issue if they were updated correctly. If you reach out to your hosting provider they should be able to help you find what is causing the redirect.

      Reply
  8. Jessica says:
    Sep 23, 2019 at 6:41 am

    I can’t thank you enough for this simple guide as I’ve always been told to not touch redirects unless you know what you’re doing, so my seo suffered a bit because I ended up not doing anything. Fact is, I know enough and can follow instructions if they’re not written for developers and I don’t have to rely on a plugin that may cause problems later ’cause they all do at some point, right? Thank you. This link is going in my toolbox to share with others having the same problem.

    Reply
    • WPBeginner Support says:
      Sep 23, 2019 at 10:03 am

      You’re welcome, glad our guide could be helpful for you and anyone you share it with :)

      Reply
  9. Wendy says:
    Aug 5, 2019 at 2:44 pm

    I used the method in the video, but my site still has Uncategorized listed at the top and the side. I tried to find the third part of the video about changing the 301 redirect links in my settings, but it is not there. However, when I click on Uncategorized it changes to general, but when I visit my site again or refresh it is back to Uncategorized. The plugin for redirects said it was compatible with my theme. Any help is appreciated, thank you.

    Reply
    • WPBeginner Support says:
      Aug 6, 2019 at 10:25 am

      It sounds like you’re trying to remove the uncategorized category from your site. If that’s the case you would want to take a look at our article here: https://www.wpbeginner.com/beginners-guide/rename-the-uncategorized-category/

      Reply
  10. Hannah says:
    Jul 4, 2019 at 2:38 am

    Hey there! thank you for the helpful info! I am wondering does this plugin work for a change of domain on my blog? I recently changed my domain and read that it is very important to implement a 301 redirect in order to not lose rankings and exposure. Would this do the trick? If so, would I put my old domain in the source line and the new domain in the target line?

    Thank you!

    Reply
    • WPBeginner Support says:
      Jul 5, 2019 at 3:22 pm

      You would want to take a look at steps 4 and 5 in our article here: https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-wordpress-to-a-new-domain-without-losing-seo/

      Reply
  11. Matt says:
    Jun 26, 2019 at 9:34 pm

    Can I use “page links to” and “redirection” one the same site?

    They seem like they serve different needs, but I have seen warnings that you shouldn’t use more than one redirection plugin at a time. True?

    I like redirection features, but I like having something on the “edit post” view that I can use to set up a redirect (e.g., teaser/excerpt linking out to a landing page or to another site). Thanks!

    Reply
    • WPBeginner Support says:
      Jun 27, 2019 at 10:51 am

      We would not recommend using the two plugins at the same time to prevent any conflicts between the two, you could check with the plugin authors for if there is a recommended method for the two plugins to work together.

      Reply
  12. Bill says:
    Apr 30, 2019 at 9:51 pm

    I migrated a WP website to a new domain and set up a redirect from the old domain to the new one within cPanel. The redirects are nearly instantaneous (that’s good, right?) but I’d like to delay them for a few seconds, long enough to display a screen on the old homepage explaining why they’re being redirected.

    I’m not a programmer. Is there a plugin that will allow me to adjust the time before the redirect occurs? TIA

    Reply
    • WPBeginner Support says:
      May 1, 2019 at 11:39 am

      Unless I hear otherwise, we do not have a simple method we would recommend to set that up sadly.

      Reply
  13. Lee says:
    Apr 25, 2019 at 10:22 am

    Hello,
    A great post by the way.
    I have numerous pages which have been redirected to new urls, I have updated all page link urls to the new urls, so no broken links on front end.
    My question is after a few months is it safe to delete any redirects which were created?
    Many thanks.
    Lee

    Reply
    • WPBeginner Support says:
      Apr 25, 2019 at 10:51 am

      If there are no references to the broken links you could remove the redirects, otherwise it may be best to keep the redirects active.

      Reply
  14. Matthew says:
    Apr 21, 2019 at 5:52 pm

    Hi, I have been using the redirection plugin for a while now trying to sort my old posts out from when I first started ( the permalinks were awful )
    What I have been doing is creating another post with a better permalink and copy and pasting the content from the old URL to the new one and then 301 redirecting them.
    After reading this post I’m starting to think that I don’t need to create a completely new post but just change the permalink on the old one and redirect it like that, Am I Correct?
    If so, can I delete all the old duplicate posts from before or should I leave them as they are?
    Thanks if you can help :)

    Reply
    • WPBeginner Support says:
      Apr 22, 2019 at 2:16 pm

      Correct you can modify the permalink and redirect without the need for the old post to be active. As long as the redirects are in place you can remove the old posts if you wanted.

      Reply
      • Matthew says:
        Apr 22, 2019 at 6:31 pm

        So just to clarify, I can delete the old posts that I copied and pasted into a new one and redirected the URL, and that all I have to do is to modify the permalink and not copy and paste the whole URL into a different post but just redirect the old permalink to the new one?
        Thanks so much for replying to me, you have saved me so much time if that’s the case :)

        Reply
        • WPBeginner Support says:
          Apr 23, 2019 at 11:36 am

          Correct, glad we could help :)

  15. Damion Mower says:
    Mar 7, 2019 at 9:26 am

    Once I have set up the redirect, what do I do with the original post, delete it?

    Reply
    • WPBeginner Support says:
      Mar 7, 2019 at 11:23 am

      While not required, most people do that if they no longer want the old post.

      Reply
  16. Focussed Events says:
    Mar 6, 2019 at 5:18 am

    Thank you this is just what I was looking for!

    Reply
    • WPBeginner Support says:
      Mar 6, 2019 at 10:53 am

      Glad we could provide the answer you were looking for :)

      Reply
  17. Lekan says:
    Mar 2, 2019 at 7:06 am

    After setting a redirection can I trash the page?

    Reply
    • WPBeginner Support says:
      Mar 4, 2019 at 11:53 am

      Yes you can

      Reply
  18. Wilbert Beltran says:
    Feb 27, 2019 at 5:26 am

    Hi, I recently duplicated a site. Let’s say the original site’s url is original.com and I created a subdomain http:testsite.orginal.com where the duplicate site is located. Now, the question is how do I do the redirection with this kind of setup. I want to make the site at original.com to be the main site.

    Thanks

    Reply
    • WPBeginner Support says:
      Feb 27, 2019 at 11:21 am

      For moving your site from a subdomain, you would want to take a look at our article here: https://www.wpbeginner.com/wp-tutorials/how-to-properly-move-wordpress-from-subdomain-to-root-domain/

      Reply
  19. Gina says:
    Feb 19, 2019 at 5:23 am

    Hi – thank you for this! Love you guys. I downloaded the plugin and have redirected some pages. Can you tell me if I should redirect mysite.com to miresite.com/ – how do I do that? somewhere along the line the “/” fell away. There were 4 different redirect plugins on the WP site I am working on for a client and the site crashed last week – I deactivated them all and installed this one – all is good except for the/ thing. Am I even asking a logical question?

    Reply
    • WPBeginner Support says:
      Feb 19, 2019 at 11:25 am

      You shouldn’t need to worry about redirecting the site to an address with a / at the end

      Reply
      • Gina says:
        Feb 20, 2019 at 3:22 am

        Hi – I have now discovered that my page mydomian.com/ is being redirected to mydomain.com – without the /

        I don’t know where this happened or how except from possibly one of the plugins I downloaded?? It is a 301 and I do not know now if this has damaged anything? All the search results show the address with the /. but when the result is clicked it go to the non /. please can you help or send me to somewhere that can help of fix

        Reply
        • WPBeginner Support says:
          Feb 20, 2019 at 11:10 am

          You would first want to take a look at your plugins if any of them are designed for redirects you would want to see if that is set there. If none of those are causing the redirect you would want to see if the redirect is created in your htaccess file or under Settings>General if the address was changed there.

  20. Tom says:
    Feb 15, 2019 at 11:32 am

    Great, thank you, I went with the .htaccess redirect, exactly what I was looking for.

    Reply
    • WPBeginner Support says:
      Feb 18, 2019 at 11:56 am

      Glad we could help :)

      Reply
  21. Vinca says:
    Jan 28, 2019 at 9:10 pm

    does this work the same for 302 redirects in an htaccess file? A client has asked to 302 redirect around 800 urls from a wordpress site to a Wix site. There are moments when it all operates fine, then we get several 404’s. Not sure if it’s because there are way too many urls or if we are overlooking something?

    Reply
    • WPBeginner Support says:
      Jan 29, 2019 at 11:00 am

      The htaccess method would work for 302 redirects if you changed the number to 302. 302 redirects are temporary which could be part of your problem as well as your caching.

      Reply
  22. Md firoz ahmed says:
    Jan 23, 2019 at 1:23 pm

    I have a WordPress site. I face some problem. I am using the woo commerce plugin. Woocommerce site automatically added product category page in my permalinks as- google.com/product-category/up/this-is-my-page. I want to redirect this link like- google.com/this-is-my-page. how can i solve this? any help

    Reply
    • WPBeginner Support says:
      Jan 23, 2019 at 2:12 pm

      For editing WooCommerce’s permalinks, you would want to check under Settings>Permalinks to modify them. If you take a look at WooCommerce’s documentation they explain more in depth. :)

      Reply
  23. Daniel Akinyele says:
    Oct 25, 2018 at 5:12 am

    Hi, Wp beginnger, if you could help me i will be do happy, I used the Htacces code and it worked perfectly. But i want My Media Files to redirect to itself,
    So is there a code to stop The d=redirection in Wp-contents Folder..pls help me my Website is Dieing

    Reply
  24. Fahad says:
    Oct 15, 2018 at 11:12 am

    Great Information helps me to get out of a serious issue :)

    Reply
  25. Michael Wright says:
    Oct 10, 2018 at 9:00 am

    Thanks for this! I needed the Redirect plugin. Didn’t know it was a thing

    Reply
  26. Emmanuel Ekanem says:
    Aug 30, 2018 at 9:58 pm

    Hello, does this redirection works for a URL complete change?

    For example, I’m using olddomain.com and I bought newdomain.com, and want to redirect olddomain.com to open up newdomain.com.

    Any help on that??

    Reply
    • WPBeginner Support says:
      Sep 2, 2018 at 9:40 pm

      Hi Emmanuel,

      If you do that on your old website, then you will not be able to access it as the plugin will redirect you and your users to new domain name.

      Reply
      • Emmanuel Ekanem says:
        Sep 3, 2018 at 2:43 pm

        Oops, so how can I achieve this?

        Reply
        • WPBeginner Support says:
          Sep 3, 2018 at 7:45 pm

          You can do that by adding the following code to the .htaccess file on your old site.

          RewriteEngine on
          RewriteCond %{HTTP_HOST} ^oldomain.com [NC,OR]
          RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC]
          RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301,NC]
          
  27. Mauwiks says:
    Aug 28, 2018 at 12:19 am

    How can I redirect a single homepage to another domain but the rest of the pages from my redirected domain won’t be affected?/

    Reply
  28. Lovelyn Montepop says:
    Aug 12, 2018 at 7:13 pm

    Thank you for this guide. Helped me a lot for a client’s request.

    Reply
  29. Kavitha says:
    Aug 1, 2018 at 10:36 pm

    I have a subdomain for affiliate store. I want to know how to redirect from my site page to subdomain page. Please help.

    Reply
  30. Maegen says:
    Jul 25, 2018 at 11:14 am

    Thank You so so much! I have been blogging for about 8 months and have worked so hard to build my Pinterest account. It is where almost all my traffic comes from. A month ago I changed over to https and I didn’t realize until last night that none of my pins were redirecting to the https. I just fixed it all thanks to you!

    Reply
  31. raj says:
    Jul 7, 2018 at 10:08 am

    thanks for the information. i have small doubt how can i redirect old post to new post without loss of comments. i mean i need previous comments

    Reply
  32. Pearl says:
    Jul 5, 2018 at 9:40 am

    Thank you so much. I spent so many hours looking for this and finally got the answer here.

    Reply
  33. Angelica says:
    Jun 22, 2018 at 7:05 pm

    Just FYI – the screenshots are out of date I think. Under Add New Redirection, I just see Source/Target URL and Group.

    Reply
  34. Aaron says:
    May 6, 2018 at 7:07 pm

    Hi, I am trying to find a way to redirect to a single page similar to a 404 when a user enters a non-existent subdomain. for example if they mash the keyboard or make a typo when keying in the domain. I want to get rid of the standard wordpress ‘No Results Found…The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.’

    Can someone point me to the solution of this problem? Or what this is called so I can try find the solution? All I’m getting is results about making my multisite a single url…

    Thank you!

    Reply
  35. Abdul Rehman says:
    Apr 27, 2018 at 6:47 pm

    I only want to redirect when a visitor to my website clicks on an external link from my website. For example, if you were to click on a product from my page it would then redirect you first to a “You are being redirected” page, then off to the affiliate’s website.
    I have been spending hours trying to do this. Please help. At this point I just want to know if it is possible with any wp plugin or any other workaround and if so how to do it.

    Reply
    • WPBeginner Support says:
      Apr 27, 2018 at 9:34 pm

      Hi Abdul Rehman,

      It is certainly possible, but we are not aware of a plugin that does it.

      Reply
  36. Udi Burg says:
    Mar 10, 2018 at 1:11 pm

    Is there a way to redirect using htaccess and that it will be opened in a new tab?

    Reply
  37. Laura says:
    Mar 2, 2018 at 9:36 am

    Hi

    Is it possible to make a redirect from the wix platform to wordpress?

    Reply
    • WPBeginner Support says:
      Mar 5, 2018 at 9:42 am

      Hi Laura,

      Please see our guide on moving Wix to WordPress.

      Reply
  38. Hafiz Mateen Afzal says:
    Feb 13, 2018 at 6:23 am

    Which plugin is best to create referrel links like:

    Thanks

    Reply
    • WPBeginner Support says:
      Feb 13, 2018 at 2:13 pm

      Hi Hafiz,

      Thirsty Affiliates is the best way to manage your affiliate/referral links. Please see our guide on how to cloak affiliate links in WordPress.

      Reply
  39. cipriana leme says:
    Jan 26, 2018 at 7:18 am

    How do I redirect from a wordpress blog (free) to a .com blog? I cannot install plugins in the free blog, so how could I do the redirect? Any advice?
    Thanks in advance

    Reply
  40. Hannah says:
    Jan 2, 2018 at 10:46 pm

    Hello! I just created a website on WordPress.org and imported all of my content from my old site, example.wordpress.com (using WordPress.com). Is there a way to redirect all of the content from that site to my new one? The redirect instructions provided by WordPress gave me an error that the domain already exists, probably because it thought I was trying to create a new domain on WordPress.com.

    My website traffic before is pretty minimal, so if anyone clicks on previous blog posts on my social channels, they’d be taken to the shut down version of my old site without the redirects – not the end of the world because I don’t have the following that would generate clicks at a later date, but you never know?

    Any advice anyone has would be great!

    Thanks,

    Hannah

    Reply
  41. Senith Nal says:
    Dec 18, 2017 at 9:48 pm

    your lesson is very helpful. i like it.

    Reply
  42. Shakoat Hossain says:
    Dec 7, 2017 at 6:43 am

    Brilliant solution to reduce redirects for worpress!

    For a few days, I’m looking to solve my WP redirects issues. I don’t find out better solution even read this content.

    Here, I got few good points and try to reduce redirect to increase my page load speed.

    Thanks! :)

    Reply
  43. Roshni Kanchan says:
    Nov 16, 2017 at 11:54 am

    Hello,
    Please can you tell me – in the simple 301 redirect in the request URL column does wordpress / plugin take it as starting from http or https? Form where does it pick up this value?

    Thanks for the article. It was useful. However the redirects using 301 redirect plugin is not working and landing on ‘Page does not exist’ page.

    Reply
    • WPBeginner Support says:
      Nov 17, 2017 at 9:16 am

      Hi Roshni,

      It uses your WordPress Site Address as defined in WordPress Settings > General page.

      Reply
  44. Nalin says:
    Nov 3, 2017 at 1:49 am

    Hi,

    If I want to change the url structure of my posts, even then redirection is necessary? Isn’t that already taken care of in WP?

    Also if I don’t redirect, will it be harmful for seo or search engines can figure out WP’s automatic redirection?

    Reply
  45. Melissa says:
    Nov 2, 2017 at 1:55 pm

    Very helpful. Thank you for the tip. Thank you for making it so simple.

    Melissa

    Reply
  46. Walter A. says:
    Oct 26, 2017 at 3:21 pm

    Thanks so much, I would’ve spent so much time doing it the long way. So happy Redirection worked instantly after install.

    Reply
  47. Cristian Adam says:
    Oct 17, 2017 at 11:05 am

    Hi Wpbeginner, I have a question about 301 permanent redirect and your advice will be great. I have an website about snoring and on that website are 2 related articles, 1 of them ranks for a lot of kws position 2-10 ( article A) and the other one just for 4-5 kws position 1-3 (article B). Both articles are on first google page and I want to permanent redirect the article B to A. Also on my website are some articles that point to article B and I want them to point to article A using same anchor texts. Now my question: Does this changes will pass the juice to article B to A and it will increase the article A rankings? And if I do this changes should I delete article B and reuse the content on other websites? Thank you very much for your time I will wait your answer, please excuse my bad english.

    Reply
    • WPBeginner Support says:
      Oct 18, 2017 at 2:28 pm

      Hi Christian,

      A 301 redirect will pass the link juice to new article. However, other search ranking factors would also apply to the new article, like relevance, context, keyword density, and more. Search engines may not find it relevant for the old keywords.

      Reply
  48. Raj says:
    Oct 7, 2017 at 2:07 am

    Hi WP beginner team,

    A quick question.

    Last year, when we changed URLs, WordPress was automatically redirecting Old urls to new urls.

    But after a recent wordpress core update, the automatic redirection is not happening.

    Would you be able to explain? Or am I missing anything

    Reply
  49. Adebowale Adewale says:
    Sep 7, 2017 at 9:49 pm

    I am changing the domain of a wordpress website example.com to example.com.ng . I tried several 301 redirect rules in .htaccess , only the homepage redirects.
    Please, assist me on the right code.

    I have tried each seperately :

    # BEGIN WordPress
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.example.com
    RewriteRule (.*) http://www.example.com.ng/$1 [R=301,L]
    # END WordPress
    

    and

    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
    
    RewriteCond %{HTTP_HOST} ^www.example.com [NC]
    
    RewriteRule ^(.*)$ http://example.com.ng/$1 [L,R=301,NC]
    

    None is working for me.

    Reply
    • Adebowale Adewale says:
      Sep 7, 2017 at 11:56 pm

      Thank you so much! I am very grateful.

      Reply
  50. Shubham Davey says:
    Jul 19, 2017 at 4:23 am

    Do I need to own the domain while redirecting? My Domain is getting expired on 31st July and I will be redirecting to a new domain. So while it is redirected do I need to own the domain after 31st?

    Reply
    • WPBeginner Support says:
      Jul 19, 2017 at 10:51 am

      Hey Shubham,

      Yes, you will need that domain for your redirects to continue working.

      Reply
« 1 2

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
OptinMonster
OptinMonster
Convert website visitors into email subscribers. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2021 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2021)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2021)
    • SiteGround Reviews from 4464 Users & Our Experts (2021)
    • Bluehost Review from Real Users + Performance Stats (2021)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2021 – Step by Step Guide
Deals & Coupons (view all)
Liquid Web
Liquid Web Coupon
Get 50% OFF on Liquid Web managed WordPress hosting plans for 3 months. From just $9.50.
WP FullText Search
FullText Search Coupon
Get 15% OFF on FullText Search WordPress search plugin.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).

Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
  • Growth Fund
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon
  • AIOSEO

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress Security by Sucuri.