Quick Nav:  Online Store   |   Login | Register

301 Redirect to new website with same domain name

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
steph balza
<50 Posts
Posts:23


03/13/2008 2:32 PM  

Hi, I currently have a dnn website www.FEECO.com, and am almost done re-creating our new website. We have really great rankings in the search engines for our keywords on our current pages and need to redirect them to the new website I just created. I am wondering the best way to go about doing a 301 redirect from our current dnn website to our new dnn website. It will keep the same domain name. I posted for help on the DNN forum and was re-directed to your mod. Can you please help me. Thanks!

John Mitchell
Posts:2779


03/13/2008 3:08 PM  
Will the urls to the pages be changing in some way?
steph balza
<50 Posts
Posts:23


03/14/2008 6:39 AM  
Yes, they will be. We implemented the "SEO Menu" from Snowcovered on the new site I am creating. Here is an example of the url's for our Rotary Dryer Page:

CURRENT SITE: http://www.feeco.com/Products/ThermalProcessing/RotaryDryers/tabid/26/Default.aspx
NEW SITE: http://www.feeco.com/ProductsandServices/ProductLine/ThermalProcessing/RotaryDryers/tabid/84/Default.aspx
John Mitchell
Posts:2779


03/14/2008 6:54 AM  
Ok, that will present a small problem since the TabId's are changing.
PageBlaster could help, but you will have to assign each page using a seperate Rule.
So you would have to create rules something like:

SearchFor:
/Products/ThermalProcessing/RotaryDryers/tabid/26/

Redirect to:
/ProductsandServices/ProductLine/ThermalProcessing/RotaryDryers/tabid/84/Default.aspx

The new Url looks good with the added keywords, but one suggestion I would make is to have the Page Name be the name of the category like this:
http://www.feeco.com/ProductsandServices/ProductLine/ThermalProcessing/tabid/84/RotaryDryers.aspx

That Url will still work in DNN, and PageBlaster can automatically change all the Urls in the output of your pages to look like that.
The name of the Page has a lot more weight in the calculation than a deep sub-folder.

steph balza
<50 Posts
Posts:23


03/14/2008 7:02 AM  
Ok, I want to make sure I understand what I need to do:
1) I will need to purchase your Snapsis Module from here: http://www.snapsis.com/PageBlaster.aspx.
2) I need to install it on the new website I am developing
3) Do I need to put the module on each page or just create a rule for each url from the old website? This will take care of my pages in the search engines, and will redirect them to the new page it corresponds to. It will update the search engines with my new links eventually right?
4) Change the page names to the keywords. How do I do that?

Thank you for all of your help, it has been really helpful :)
John Mitchell
Posts:2779


03/14/2008 7:43 AM  

I haven't released the latest version that will allow you to do this yet, but it is ready and I'll make it available to you after purchase.  I just need to finish the documentation.

The actual Rule in PageBlaster is a little more complicated then what I showed, but once you do one they are easy.

Here is what it will actually look like in PageBlaster:

SearchFor:
/title>


Replace-Respond With:
[PB: IF(  Match("[PB:Request.Url]","/Products/ThermalProcessing/RotaryDryers/tabid/26/")  ) {

     [PB: Response.Status("301 Moved Permanently") ]

     [PB: Response.AddHeader("Location","http://www.feeco.com/ProductsandServices/ProductLine/ThermalProcessing/tabid/84/RotaryDryers.aspx") ]

     [PB: Response.End() ]

} else{

/title>

}]

You will create these rules in the Admin> PageBlaster section of the new site (one for each page you want to redirect).
You won't need to do anything with the old site since it has the same domain name.
The PageRank will eventually move from the old to the new page.

To change the Urls in the output of your pages you will only need one rule in the Admin > PageBlaster config.

SearchFor:
(/[^/]+)(/tabid/\d+)/Default\.aspx

Replace - Respond With:
$2$1.aspx

steph balza
<50 Posts
Posts:23


03/14/2008 7:58 AM  
John, Just purchased it. I will wait for an email from you with the new version. Thanks again :)
John Mitchell
Posts:2779


03/14/2008 8:18 AM  
Thanks for the purchase.
I just sent the latest to you.
steph balza
<50 Posts
Posts:23


03/14/2008 10:18 AM  
quick question. I got it installed fine, but I lost some of the css on my website. It is really strange. I had some images in the css between my menus and they are gone. I can still type in the url and get to the images though. It's just that it isn't showing up on the page anymore. Can you help me out?
John Mitchell
Posts:2779


03/14/2008 10:26 AM  
It sounds like there is a problem with the way it is handling the path to your image when it merges your CSS.
Can you attach the CSS file that this is happening with?

You can also put an exclude pattern in your Snapsis.PageBlaster.config file to stop the merging of CSS like this:

< path pattern=".*" excludeFrom="MergeCSS" />
^remove the space between < and path
steph balza
<50 Posts
Posts:23


03/14/2008 10:31 AM  

that worked  Thanks!!!

steph balza
<50 Posts
Posts:23


03/14/2008 10:42 AM  

 

I got the page names to rename and replace the Default.aspx. Now for the other urls...I just want to make sure I understand it so I do them all correctly. Sorry for all of the question.

SearchFor:
/title> - Is this exacltly what I type in or is it missing the front <


Replace-Respond With:
[PB: IF(  Match("[PB:Request.Url]","/Products/ThermalProcessing/RotaryDryers/tabid/26/")  ) {

     [PB: Response.Status("301 Moved Permanently") ]

     [PB: Response.AddHeader("Location","http://www.feeco.com/ProductsandServices/ProductLine/ThermalProcessing/tabid/84/RotaryDryers.aspx") ]

     [PB: Response.End() ]

} else{

/title>- Is this exacltly what I type in or is it missing the front <

}]

For the "IF" this can I put in the full url like the "Response.AddHeader Location? Or can it only be part of the url like it is shown above?

John Mitchell
Posts:2779


03/14/2008 10:44 AM  
Great. I'd still like to get your css file if you don't mind. It sounds like I may not be accounting for the way the path to the background image has been declared.
steph balza
<50 Posts
Posts:23


03/14/2008 10:48 AM  

sure no problem. I am going to email it to you I got an error trying to upload it here It was the last couple of entries in the css file. They all have background-image: url(http://process.feeco.com/Portals/0/FILE NAME.jpg);

John Mitchell
Posts:2779


03/14/2008 10:49 AM  
You can put the < on the front of the /title tag, or not. You just have to look for something that will always be in the page output, and I left it out so it would display properly in the forum.

Yes, you can use the entire url in the match part of the IF condition, but I would recommend only putting enough to uniquely find that old url. If you make it more specific it could take longer to do the match.
steph balza
<50 Posts
Posts:23


03/17/2008 2:15 PM  
What do I put for "Repeat Times" at the bottom of this rule. I tried leaving it blank and saving it but it keeps on saying 1. I tried doing -1 so it will always repeat this rule and this didn't work. What do I put in here to repeat forever?
John Mitchell
Posts:2779


03/17/2008 2:26 PM  
RepeatTimes will almost always be one in Replacement Rules. The search and replace is global and will find all instances of the search and replace them in the first pass.

The only time you need to repeat a rule is when you have a replacement that changes what the first search sees.

I'm glad you asked though, I was kind of worried about the Repeat Times field throwing people off, and I think I will put some text by that field to let them know that in almost all cases it will be one.

Even if you put 999 in there it would finish on the first search & replace.
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > 301 Redirect to new website with same domain name



ActiveForums 3.7
Powered by: Snapsis Software