You need to Register for free and Login to post a message in the forum.

Forum

Subject: Redirecting Old Website Links To New DNN Site
Prev Next
You are not authorized to post a reply.

Author Messages
John
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:34

14 Apr 2009 3:52 PM  
Hey guys,

I am confident that there is an easy, clean way to do this, but I am currently stuck.

I have an old site that I rebuilt in DNN.  The domain name is the same, but obviously the page URLs are different between the site.  My new site works fine, but all the SEO we did on our old site is useless because the links in google (and other search engines) point to the old URL.

Is there a clean way to handle this?  Here is an example of what I want to do...

(Keep in mind that the base domain is the same, but I simply pointed the domain away from our old site to the new DNN site we built.)

The google search on our key words return the link:
http://mydomain.com/Products/Seminars.aspx?ID=48
...but the actually link is now
http://mydomain.com/Default.aspx?TabID=130

I tried playing with the siteurls.config file, but I could have my regular expressions mixed up.

Any ideas?  I need to make sure about 7-8 of these old links now point to the proper place in my new DNN site.  Any help would be appreciated.


Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5352


15 Apr 2009 11:38 PM  
You might see if Ifinity's URL rewriter product will do the job for you.

Also, check out Tom Kraak's seablick.com site and blog. He has some good SEO tips there.

Joe Craig
DNN Creative Support
Subscribe to the website
John
DNN Creative Magazine Subscriber
Nuke Active Member
Nuke Active Member
Posts:34

20 Apr 2009 10:24 AM  
Joe,

Thanks for the reply, but I found my work around.  I was overlooking the obvious as I was not simply leveraging 301 redirects.

I am posting this for anyone else who runs into this issue when they convert from on old site to their new DNN site and are concerned about their old links in google and other search engines.

I had old links such as:

http://domain/Products/EventsAndProducts.aspx?ID=21
http://domain/Products/EventsAndProducts.aspx?ID=9
http://domain/Products/EventsAndProducts.aspx?ID=32
http://domain/Testimonials/Testimonial.aspx
http://domain/Testimonials/Testimonial.aspx?ID=11

All I did was create the Products folder and the Testimonials folder in my root folder, and added the respective aspx files in each (i.e. EventsAndProducts.aspx in Products, and Testimonial.aspx in Testimonials).

Here is an example of what the EventsAndProducts.aspx page would look like. Do not forget the "<" before the word script at the beginning and add you ending brackets and the end script tag at the end. Sorry, this is the only way I could get it to display in a way that would make sense:

script runat="server" language="c#" >
private void Page_Load(object sender, System.EventArgs e)
{
string pageid = Request.QueryString["ID"]
switch (pageid)
{
    case "9":
        Response.Status = "301 Moved Permanently";
        Response.AddHeader("Location","http://new target");
        break;
    case "21":
        Response.Status = "301 Moved Permanently";
        Response.AddHeader("Location","http://new target");
        break;
    case "32":
        Response.Status = "301 Moved Permanently";
        Response.AddHeader("Location","http://new target");
        break;
    default:
        Response.Status = "301 Moved Permanently";
        Response.AddHeader("Location","http://new target");break;
end bracket
end bracket
end script tag
Joseph Craig
DNN Creative Staff
Nuke Master V
Nuke Master V
Posts:5352


20 Apr 2009 10:49 AM  
Thank you for the details!

Joe Craig
DNN Creative Support
Subscribe to the website
Benny_A
Nuke Newbie
Nuke Newbie
Posts:1

29 May 2009 9:04 AM  
Glad you wrote about this jncraig, this is (IMO) an extremely important issue; one that gets overlooked far too many times by the general DNN community.

Question for you though; is there a reason you did the 301's through a script method, instead of doing it straight through IIS? (Steven Hargrove has a great how-to).

Or were you doing it this way because you don't have access to your hosting server's IIS?

Thanks for the crystal clear explanation!
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Redirecting Old Website Links To New DNN Site



ActiveForums 3.7

Latest Forum Posts

RE: while installing bulk emailer module in my website by dub
Agiline, We have seen this problem before. It is caused by the Security on IIS. Please have a loo...
RE: Change Registration Redirect? by ollep
Probably still want to do it with Dynamic Forms now.My reason for changing (except from getting Aweb...
RE: Change Registration Redirect? by ollep
YES!http://www.dnncreative.com/Subscribe/tabid/81/Default.aspx
RE: Change Registration Redirect? by ollep
Yes I noticed that we where talking about 2 different Modules as soon as I dug into the tutorials.Ab...
RE: Change Registration Redirect? by leesykes
If you are check out the links that I have placed in there:http://www.dnncreative.com/Subscribe/tabi...
RE: Change Registration Redirect? by leesykes
Are you referring to when subscribing there is a link to register and after they register it sends t...
RE: Change Registration Redirect? by leesykes
The method I use on here for managing my email list is complicated and involves SQL queries, it is b...
Ecommerce module needed by vishalranaut
Infyecommerce is providing ecommerce packages for the clients to develop their ecommerce sites.They ...
RE: DS Dynamic Forms / AWeber by leesykes
If you are getting time out issues when installing I would use the auto install method by using FTP,...
RE: Change Registration Redirect? by ollep
Oooops Helps reading your responses before posting here Lee. I referred to Issue 40 / 41 and ...
DS Dynamic Forms / AWeber by ollep
Thanks for a great Tutorial Lee!  - As usual.(I still can't install the module in Firefox though, Fi...
while installing bulk emailer module in my website by agiline
Hi all,i have downloaded bulk e mailer trial version and when i am installing it in my website it wa...
RE: Creating Portals before setting the host by cyborama
Hello Joe, Just got done speaking with my hosting company in reguards to A records and host head...
RE: PayFlow Link by johnmurphy
Hi murphydolores, I am using iHost. iHost.Net supports PayFlow Link and its easy to configure. T...
RE: Background Music by cyborama
Hello Kyle I can't think of any modules that could do this though that doesn't mean they are not out...
RE: Creating Portals before setting the host by cyborama
Hello Joe thanks for the quick reply, If you read down my thread fully you will see I had already...
RE: Employee Absent Indicator by jncraig
I think that the biggest here is to define the workflow and to figure out who/how will maintain the ...
RE: Run exe/dll from DNN? by ollivogt
Thank you. I have a look at it....RegardsOliver
RE: DotNetNuke 5.3.0 Released by jncraig
Whoops! From Joe Brinkman: "With any software product you will occasionally have a release tha...
RE: Creating Portals before setting the host by jncraig
Whoops! Didn't quite finish. DNS, through A Records and other records is used to convert a domai...
DotNetNuke Modules
RSS Feeds