How To Setup Redirects In WordPress For Better SEO & Smooth Website Migrations

Articles, Blog

How To Setup Redirects In WordPress For Better SEO & Smooth Website Migrations

How To Setup Redirects In WordPress For Better SEO & Smooth Website Migrations


One of the most important kind of technical
things that you need to know about WordPress’s how redirects work when to use redirects wider
use redirects in order to go over all of that in this video hi my name is Adam from WPCrafter.com
were a big WordPress tutorial videos for non-techies if you know your consider clicking on the
subscribe button is matter fact let’s take a look here we now have on the channel 50,595
subscribers I want you to be the next one and also click on the little bell and that’s
it will allow YouTube to let you know what I have new video up for you so okay Reed directs
this is the process of you maybe you’re removing the page or moving a page or something like
that on your websites and if someone visits that old URL it would redirect them to the
new and proper URL and this is actually super important when it comes to Google because
Google is wanting to know every page on your website so when people are searching for things
that have to do with you and your website it can show them the right thing and if you
change a URL to a different URL or maybe delete a page or maybe move to a different domain
name and you don’t have proper redirects in place Google’s knocking to show you any, love
and that is a problem and there’s the good news is there’s lots of easy ways to fix it
and the whole concept of redirects can seem a little overwhelming but I’m here to let
you know that it really isn’t that I’m in a show you in this video different ways to
get those redirects implemented last thing about redirects if you are say your web designer
or you have a website it’s on may be an old HTML-based website you’re switching over to
WordPress a lot of times the different links the different URLs offer all the different
pages on your website are going to change slightly that’s the most crucial and critical
time to understand these redirects whenever you switch you need to make sure your URLs
either match up or you have a redirect in place for every single one okay that’s enough
about redirects okay there’s different types of redirects up with the link to this in the
video description box but here it is on Yoast’s website just go to Yoast.com/which-redirect
and it will tell you about the different types of redirects and when to use them pretty much
you can use at 301 redirect and that’s were going to go over in this video but there are
other types of redirects but you’re pretty much can want to use your 301 redirect that’s
when you’re telling whoever Google wave whatever that you took this content down but you would
you want to whoever visits that URL to go to this other link such 301 redirects but
I’ll put a link to this in the video description box you could take a quick look at the different
types of redirects so measure you three different ways to add the reader it’s actually it’s
two different ways one of him is going to be editing what’s called your dad HD Access
file I do not use this but I’m just throwing this in there’s order to go over that first
the next one is using a WordPress plug-in and I’m gonna show you two options for that
option I use which is a paid plug in and also to show you a free plug-in that will allow
you to pretty much do the same thing okay so okay HT the.HD Access file every websites
domain name has this file called a.HD access file you might hear it reference from time
to time on that to show you how to open that up and edit that so I’m logged into a web
hosting account now this is based on cPanel yours might if it’s based on cPanel look the
same or look similar but is pretty much the same thing maybe some different colors so
what we want to do when were logged into cPanel is open up what’s called the file manager
now the easiest thing there’s probably like 80 different icons here just go right here
it says fine functions quickly and type file manager I find that’s the easiest way to pops
right up go ahead and click on the file manager is can open up in a tab like this and what
you want to do is go to the folder that has your website installed most most of the time
it’s probably going to be in this public.HTML folders you can go ahead and click on that
and here’s all the files that make up the website that’s in that folder and you may
or may not be seeing it.HD Access file I loaded it up intentionally not showing it if you
don’t see a.HD access file this is what you need to do on the top right corner there is
a button that says settings click on that and then there’s this check box right here
it says show hidden files click on that and then click on save and now you should see
your.HDX’s file and I see it right there now to edit the.HD Access file all you do is go
right here click on edit and then click on edit right here it’ll open up a new tab and
you can put some stuff in there you want to put it underneath this line right here now
here’s another link that I will put in the video description box that tells you basically
the bits of text you want to put in there in order to set these redirects up I personally
don’t use this way because I just cannot prefer user interface I’m already in WordPress anyway
so and there’s also some other advantages to doing it inside of WordPress in my mind
you might have your own your own preference but this page right here is good to you how
to redirect the entire domain name individual pages groups of pages and all that it’s very
in depth okay so we got that in place now what I want to do is show you how to do it
in WordPress on the show you the way that I’m doing it in the numbers show you a free
plug-in to do it that way as well I use the paid version of Yoast is definitely not a
required plug-in at all and has a couple things in it that I really like and one of them is
managing this redirect for me so if I say go to a blog post and change the URL of the
URL to enter I deleted it will automatically create these redirects let me show you what
I’m talking about cyclical posts I think I have any posts in here let’s see okay good
I have a couple so I’m in a go ahead and click in one just like this and you’re gonna see
what happens in Yoast so here is the full link to this post if I was to click on edit
and then edit this in any way so Sam wanted to shorten it up and then click on okay as
soon as I click on update organicity notice from Yoast saying we created this redirect
for you or something along those lines in there it is at the top it says Yoast SCO premium
it’s the paid version of Yoast created a redirect from the old post URL to the new one so Yoast
did it all for me now actually I should back this up the reason I making this video is
because of this video I made the other day about 15 SCO tips that work and one of them
was the use of short URLs and so this is a way of shortening your existing URLs that
might be up okay so that is right there how one of the ways you could do it in Yoast and
then what it does is it does this automatically for you but you can tweak it if you wanted
to so I can go ahead and click right here it says redirect it’s can it take me to the
specific part of the plug-in where those redirects are created and it’s just underneath SCO and
then redirects and Bambi here it is so this is what it created a 301 redirects this was
the old URL and this was the new URL so I can either here create manual redirects if
I wanted to from an old URL to a new URL or I could go in here click on edit and edit
this existing one one of the tips in that video of the 15 SCO tips that work is to shorten
up your URLs but also if you have pages on your website that are getting any traffic
you could probably get rid of those and it would help from an SCO spirit perspective
with Google and what you want to do is definitely have these redirects in place whenever you
delete content okay so this was Yoast now let me go ahead and show you an alternative
way right here there’s a free plug in so just go to plug-ins add new do a search for the
word redirect the very first result that comes up is a plug-in named redirection go ahead
and download and install that and I’ll go ahead and click on the activate button right
here you can see is about a million people using this I have used this before us several
times when I have had a client that had an HTML base website switch them over to WordPress
and I needed to have a redirect for all their old URLs to the new location in WordPress
okay so I just activated that let’s go ahead and find the settings panel exits the settings
right here that will make it easy it’s probably tucked underneath settings right there I’ll
be the first let you know I have not exits under tools I prefer that I have not used
this plug-in in a while so I’m just going to jump on into it last I remember this does
not do anything automatically for you like we saw in the premium Yoast version okay some
a go-ahead right here and click on a redirects but is pretty much can be the same thing so
right here you put the old URL and then right here you put the new URL and then you can
group it if you wanted to such actually just go ahead and create a redirect right now so
I want to go ahead and put in I filled this ounce I put in this URL link that does not
exist this would be the domain/old-site and then by putting the/and here I just letting
the plug-in know to redirect it to the homepage in case someone to click on add redirect right
here and there it is it already put it in as a 301 redirect that should give me some
options let me see not actually seeing other redirect options here so I am actually there’s
a little click will hear there it is okay so if you want to tweak some of the properties
of this particular redirect you would have to click on the little click will right there
and you have some more options she can change it from the 301302307 or 308 and there some
other information here as well that’s very good summary click on cancel some to go to
the front end of the site right here and I’m in a go ahead and enter the address which
was the domain name/old page like that and watch what happens to the URL so to go here
okay now that I have it in him and hit enter in your in a C normally it would show a 404
content not found page but instead it’s just gonna redirected to the homepage which is
exactly what I set up matter fact let me put this in my clipboard so we can show it both
ways so here we go and you see right there to the homepage so now let me go back and
says she let me show you what happens when I don’t have this redirect I go ahead and
click on delete let me confirm that it’s gonna delete that redirect I just added let’s go
back to that URL let’s hit enter and it should show for a four-page unless there’s some browser
caching which might be the case yes there is a 404 page so this is how you would do
redirects and typically what you want to do if you’re switching the site from non-WordPress
to WordPress is your gonna want to your out every single URL on the old sites and then
match it up with the URL for the new site if you’re using this plug and you’d use this
import function so say there’s 100 URLs and you need to match them up to how the URLs
get a look in the new website and go ahead and import them into this plug-in and you
are off to the races hey if you found any value in this video go ahead and give it a
thumbs up consider clicking unsubscribe if you’re not a subscriber thank you for watching
and I’ll see you in the next video

67 thoughts on How To Setup Redirects In WordPress For Better SEO & Smooth Website Migrations

  1. Good video Adam,
    I am going to have many redirects (static -> wordpress), how long should a redirect be in place for?
    Does it eventually get removed?

  2. Very rare & important topic.. you always brings us best.. Thanks Sir..!

    Also.. a good news i am now Astra Agency.. Thanks for your Reviews..!

  3. One quest I had a while back, and I think I've gotten my answer, but you may have something to add or it could be helpful to your users.

    Can creating too many 301 redirects be harmful?

    I had a customers website I was completely revamping and switching platforms, which was around 50 pages. The structure of the old site was not what I'd want it to be, so I ended up going with different URL's for all but 3 of the pages. I created 47 301 redirects to ensure any old links to their site would not be broken once we switched.

    The info that I found said that this is not a problem, and that it is unlikely this would do SEO harm with Google. Have you found this to be the case?

  4. Thank you, actually today I had a problem with this and you posted this video just in time! Keep the great work please!

  5. Great video Adam! I so needed this a month ago for a web-redesign and migration. I was trying to decide between Yoast and Redirection. I chose to use the paid Yoast plug-in and heavily relied on this for a variety of redirects. I created individual redirects, imported a bulk list of 200+, and I connected Google Search Console with Yoast and it will let me create redirects on the fly for 404 pages. Yoast even lets you view/edit the .htaccess file for those more complex redirects (such as http to https).

  6. Thanks Adam. I literally made a change to a couple of my pages yesterday and just used this. Thanks!!
    Been subscribed for a while and sticking to it!!

    WOw, was just doing a followup on my Google Console and discovered a bunch of 404 errors. a bunch have "page-name/www.mydomain.com" weird, any idea how that would happen? Also seeing some with page names that shouldn't even be there. Like it was hacked. Running scan using WordFence now, though now been using iThemes since your video re WordPress slowing the site down.
    Thanks in advance.

  7. Another great video Adam… you read my mind with this one! I just have one question since both your examples were about url's within the same website. Am I understanding correctly that if I have an old domain name from a site that I'm merging to become part of a new site with a completely different domain name, then using the free Redirection plug-in I simply enter the old domain name as the "source" url and it's new domain name (that's part of the new website) as the "target" url?

  8. Another Good video Thanks!

    I checked the Redirection plugin and it actually has some automatic features now:

    from Plugin description
    "Why would I want to use this instead of .htaccess?
    Ease of use. Redirections are automatically created when a post URL changes, and it is a lot easier to manually add redirections than to hack around a .htaccess. You also get the added benefit of being able to keep track of 404 errors."

  9. Thanks Adam for the insights. Any clues on doing WILDCARD 301 redirects in .htaccess from one domain to another where the URL hierarchy is the same just different top level domain?

  10. ADAM

    Thanks for this tutorial!

    Now, what do I do with the old posts that have been redirected to a new URL—should I leave them published, change them to draft mode, or put them in the trash?

    Keep on keepin' on!

    NEAL

  11. I understand if in Redirection plugin if in "When matched" you choose "Pass-through" the destination url will show my site page url. That is great for affiliate marketing. Choose 301.

  12. Hey Adam: I just created a completely new site for a client – same domain but a different set of pages. When I search the client's business on Google, all of the pages for the old site still pull up – including some that were schema! Of course, all of the links go to pages that don't exist on the new site. Do I need to find all these old pages and set up redirects to similar pages on the new site? Hoping not to tank this client's rankings by messing this up!

  13. Dear Adam, first of all i love your stuff and lots of thanks from the Netherlands. It have been really helpfull to me. but: When i read google documentation on removed pages/404/redirect etc. One thing popped up and confused me. Google says the following thing on their website ( i copied and paste): 1)Most 404 errors don't affect your site's ranking in Google, so you can safely ignore them. 2)Decide if it's worth fixing. Many (most?) 404 errors are not worth fixing. Here's why:Sort your 404s by priority and fix the ones that need to be fixed. You can ignore the other ones, because 404s don't harm your site's indexing or ranking. 3)If it is a deleted page that has no replacement or equivalent, returning a 404 is the right thing to do.
    If it is a bad URL generated by a script, or that never have existed on your site, it's probably not a problem you need to worry about. It might bother you to see it on your report, but you don't need to fix it, unless the URL is a commonly misspelled link (see below). …And the one that scared me the most 😉 (Once Google has successfully crawled a URL, it can try to crawl that URL forever. Issuing a 300-level redirect will delay the recrawl attempt, possibly for a very long time.) So…Do you think it is ok for non techs to download a plugin and start redirecting like that?

  14. Hey Adam, thanks for that video.
    Question:
    Will this redirect work with redirecting the WooCommerce Shop Page URL to another page's URL. Particularly when wanting to change which page, (on your site) the WooCommerce buttons on the Checkout & Cart pages send a customer?

  15. Where is the best for redirecting domain avoiding bad impact in SEO? REDIRECT DOMAIN in Domain Registrar or Using 301 in webserver?

  16. For my company, I have just acquired two other businesses and would want to take their websites and point them to my current website. How would you got about doing thisto preserve SEO value from the two other websites? Can I just 301 redirect the other domains to my current domain or would I need to take each individual page from both of those sites and 301 redirect them somewhere on my current site? Would I need to do this in the .htacess file?

  17. How to add a redirect external waiting landing page for download button?
    (My website is freebies website. So I'm using other websites freebies adding in post as download button. But I need waiting specil landing page for 10sec for reaching their website. Please help me.)

  18. Thank you!!! You really helped me! My site was completely deleted, there is no backup. I had to redirect everything! I'm from Ukraine and do not know very well English, sorry for my bad English!)

  19. Hi – I have a WP site with SSL Cert but the URL is showing an exclamation – saying my site is not fully secured – I have installed Redirection plugin as you advise but I don't know what to put in the "Source URL" or the "Target URL" – could you help me please?

  20. Hey Adam…Quick question! I am just changing the DOMAIN NAME of one of my websites. So, are REDIRECTS something you do AFTER you have moved the existing site to the NEW domain name? (Which would mean that until you enter all the redirects, the site will get 404 errors.) Correct?

  21. Hi Adam Preiser, At first to say that, thanks for sharing your knowledge. Today I have a problem with my niche website. If I remove my old image and upload a new image for the same keyword and alt text. Should I have to redirect?

  22. Thank you so much! This video was extremely helpful. I was searching for hours for help with this and luckily I found it all in one video. Thanks again!

  23. I've tried multiple plugins and none have the ability to add rel =
    nofollow or noopener! None of these have the option? If you know how I
    can do this please help thank you!

  24. Great content Adam! Quick question, is there any way to increase your Google engine search results? I've added key words but my website is still not showing in the first couple of searched pages. Could help me with any advise?

  25. So if Premium Yoast does this for you, does this 301 disappear if you unsubscribe from premium?

  26. Why did'nt you say anything about a scenario when you buy multiple domains and then redirect to you website. This is also doable via your doamin account for example i use godaddy. there you can just add your old domain and all pages will just direct to your home page and you can mask the redirect too. You manually dont have to add all your 100 pages and redirect them. Also i used it to redirect my old website url to my new website but the redirect is not working.

  27. Hi, Does this redirection plugin work for to redirection from my deleted page to a page on ( another ) website ? Thanks

  28. I have changed my domain from .net to .com.au how would I redirect this? Every plugin on WP I have used doesn't work this way. I have also tried using search console but when I tell them it is a new site it says 'We couldn't crawl your site. Check that Googlebot can crawl the root of your site using the Fetch as Google tool. Any help would be greatly appreciated.

  29. Thanks so much for this video!!! The free version of the plugin now does the redirect automatically as soon as you change the url on an already published post. One unrelated question: what did you use to capture your screen + show you talking at the same time? (I did google that but no bueno.)

  30. Thank you for the video i have a little request; i have a multisite but i am having a major issue with my subdomains and mapped domains.
    If the urls are not full typed with https they will redirect to the multisite primary domain.
    eg: (https://mysubdomain.com or https://mapped-domain.com) will work well but (mysubdomain.com or mapped-domain.com) will redirect to the primary domain

    Please how can i solve this?
    Thank you

  31. i dont get people like this that think they need to explain why you need to redirect something when most people watching this video searched in youtube for 'i want to redirect a page.' Maybe they already know they want to do it?

  32. Your videos are amazing! Thank you for them. Can you make one on accessing htaccess for Cloudways? They say it can be done, but with no c-panel and only digital info sheets with acronyms beyond me, I am lost in the process! Would love more Cloudways videos!! -Ashley

  33. Hello! I am really a beginner. I like your videos because I can put these problems on front of my web designer. I have a Q: so if I make a redesign for my website and I will probably delete some pages I need to redirect the URLs to home page?

  34. Hi ,

    i'm not expert but i have question

    if i make content locker for some product and some one make a survey for content locker then redirect to the page content that product and then same person make copy for product page URL for next time >>if he just past that URL for next time

    he will not have to do the survey every time and enter the product page without the need to do the survey … How to solve this problem
    by force him redirect to survey page , but make exception for who make survey only can enter the product page

    Thank you for your patience ^_^

  35. Saw you in that Austin Powers movie. You tried to rule the world? I see you're doing WordPress now. I guess everybody needs to make a living, including super-villains that fail. good luck

  36. If I redirect an article from the old blog to the new blog should I delete an old blog post? Should I do it immediately? Should I do it after it stops ranking?
    If a blog posts do not rank, would you advise to delete an article from an old blog and paste it to the new blog? Thank you for your answer!

  37. Thanks for this. I changed some catergories and now have this issue lol.

    Update thank that free plugin is great as well. You can just 301 redirect to the new catergories. I just did the ones showing up on google. It would take a long time to go back through and find the old busted links. But I plan to have better link seo in the future. Thanks very much for making this video you have earned a subscription!

Leave a Reply

Your email address will not be published. Required fields are marked *