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
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
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

You May Also Like