Build Your Own Business Website header image

How to Convert a Static HTML Site to Thesis Part 20 – Write the 301 Redirects

Difficulty Level -

Filed Under Topics - ,

Listed Under Lesson Subjects - ,

Applies to -

Whoops, you've found some premium content!

Watch the opening clip of this video to preview it,
the full video is available to paid members.

In this session we show how to write the 301 redirects now that the new site is up so that there are no 404 errors from the old site. We create permanent redirects from the old page addresses to the new page addresses which allows Google searches return the new pages.

Video Transcript

However, if you type in the old site address… let’s say, with one of the old pages. Remember we had biltmoresale.aspx? We’re going to get a 404 error because that page doesn’t exist. So now what we have to do is the final step which is to create that 301 redirect.

Okay so the 301 redirect is something that happens inside of the htaccess file. Let’s go ahead and clean up and remove all the temporary files first.

Okay, that happened. We’re all cleaned up. We come back over to the File Manager and refresh our view. Perfect. So we’ve got all this stuff down here and none of our old files existed there. I mean the old zip file, Import Buddy files, those things have all been deleted.

Now what we want to do is edit this htaccess file. Now you can edit it this way or… which is what we’re going to do here. But you could also download the file and edit it which makes a lot of sense as well. Now this stuff here, you don’t want to mess with. This is absolutely required. It’s written by WordPress. It’s required by WordPress. But what you do want to do is… Let’s open this back up again. Here’s our spreadsheet with our sanitized data.

So what we need to do here is come down below that and type in redirect and a space. And then we can copy this and then a space and we copy this and then enter and then we go down to the next line. So what this is… the syntax here is you have the keyword redirect and then a space and then the address of the page that you are redirecting which, in this case, is arcadiasale.aspx. So that was the old page address. And then you have the full URL for the new address. This doesn’t require the full URL. The redirection here assumes the URL of the current website. So we don’t need the http://biltmoreetc.com but we do need that for the 2nd half of the redirection where we are saying what page it wants to go to. So it’s redirect the old page without the main domain, the new page with the full URL so those 3 parts.

And in fact, in order to save time, I have already created that in a text file so we have all of those already ready to go. And what I’m going to do is hit save changes. And now if we come back over here and refresh this, we should be taken to the Phoenix Biltmore page because we said that Arcadia… oh pardon me. What happened to Arcadia? Biltmore sale… okay. I think I just… I think I need to add one to this, the one that I deleted. Redirect and then pick that back up again, that Arcadia sale. Copy that and then go in front of it, come back and get Arcadia sale. Paste it. Make sure there’s a space there.

Okay so we’ll save those changes, come back over here and we’ll go to arcadiasale.aspx and it takes us Arcadia Properties for Sale. So now, all of those old pages, let’s look at the video buysell.aspx. Okay, this is a page name, videobuy.aspx. If we click on that, it takes us to the Buyer Information page with the videos on it just like it should.

So what we have done is we have created 301 redirects, permanent redirects from the old page addresses to the new page addresses. And all the Google search stuff is going to pass on through and any links that used to be to the old pages are going to pass on through to the new pages.

0 Comments… add one

Save $200 on Membership Now!

Start learning today for as little as
$0.82 PER DAY!
THIS IS A LIMITED TIME OFFER!
Subscription Options
0 comments… add one

Leave a Comment