In this session we show how to make a list of all existing pages from the old site for to the new site. We start off by making a list so that we have a one to one correspondence with to the original URLs. Then we show how to sanitize the information so that only the name of the file remains in the old URL and replace the new URL with the correct name.
This is the site here that we are transferring. It’s biltmoreetc.byobtutorial.com. We’ve had several parts of this already completed including adding all the jquery to make all this stuff properly and all that stuff. And we’ve got all of that stuff transferred from the original site on to here. And so now what we’re going to do is copy this site and we’re going to move it to the live server.
So we’re going to start off by making sure that we have a one to one correspondence to the original URLs. And unfortunately, we’ve already torn the original site down so I can’t really show you the old URLs. But I can show you where we were before we tore it down.
The old site had these various pages and you can see that like, for example, arcadiasale.aspx, biltmoresale.aspx, paradisevalley.aspx. All of these pages were all in the root of biltmoreetc.com. So what you do is you’d go to each page on the original site and you find that the corresponding URL or the corresponding page on the new site. And you just make sure a little spreadsheet like this that copies the old page address and the new page address. That’s where you start. You just start by going to the old page, going to the corresponding new page and copy both URLs, stick them in the spreadsheet like this. Because the thing that we’re going to do is, we’re going to create 301 redirects using this information once the new site is moved. And so that’s the first thing to do here.
Once you have this information, you’re going to sanitize it. And by sanitizing it, what I mean is you’d want to take out the old biltmoreetc.com out of this name and just have the address of the page. Now if this had subfolders that these pages were in, you would include that address as well. But all of these pages were all in the root of the website so that none of them were nested inside of subfolders. But you want the name of the file standing alone.
And then over here, you want to take out or you want to replace the name… this name, biltmoreetc.byobtutorial.com with the new name, biltmoreetc.com. So you need to sanitize this data so that the old URL does not have biltmoreetc.com and the new URL actually has the biltmoreetc.com. And from there then, what we’re going to do is we’re going to use that to recreate or to create our 301 redirects.