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

Forum

Redirecting Old Website Links To New DNN Site
Last Post 2009-05-29 03:04 PM by Benny_A. 4 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
johnmk777User is Offline
Nuke Ace
Nuke Ace
Posts:45

--
2009-04-14 09: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/Semina...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 CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9001
Avatar

--
2009-04-16 05:38 AM  
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 DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
johnmk777User is Offline
Nuke Ace
Nuke Ace
Posts:45

--
2009-04-20 04:24 PM  
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 CraigUser is Offline
DNN Creative Support
Nuke Master VI
Nuke Master VI
Posts:9001
Avatar

--
2009-04-20 04:49 PM  
Thank you for the details!

Joe Craig, DNN Creative Support

Subscribe to DNNCreative
I recommend PowerDNN for DotNetNuke Hosting.
Benny_AUser is Offline
Nuke Newbie
Nuke Newbie
Posts:1

--
2009-05-29 03:04 PM  
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.

Active Forums 4.3

Latest Forum Posts

Admin menu problem by alireza arabiyan
hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config procedure
RE: dnn 4.4 upgrade issue by imran shaikh
Thanks you all it is done by renaming release.config to web.config
dnn 4.4 upgrade issue by imran shaikh
hi this is imran i am upgrading dnn 4.4 to dnn 6.0.2 and getting this error please help me for this
RE: How to build Skins for DNN 6.x by Joseph Craig
I'd recommend that you try replacing the hard-coded text with the DotNetNuke Text skin object. That
RE: Module permission does not work! by Joseph Craig
What permissions have you give to that role?
RE: DNN nav issue by Joseph Craig
Are you using a custom skin? How often does this happen?
RE: Friendly URLs Broken by Joseph Craig
I don't entirely understand this, but I'm glad you got things working.
RE: How to build Skins for DNN 6.x by Christopher Adamakis
Dear all, I have one more question regarding greek fonts. If you check my site http://www.expertsoft
RE: Dnn local setup problem by imran shaikh
this is error is resolve now now getting this one Server Error in '/cooperpharma.ma' Applicat
RE: Module permission does not work! by Abraham Tameru
I created a special role for the user to administer the site. The user is not a member of the Admini
Dnn local setup problem by imran shaikh
Hi All i have just installed the new site files on my local computer set the connection strin
RE: Firefox has detected that the server is redirecting the request for this address in a way that will never complete. by imran shaikh
Hi i have the same issue Firefox has detected that the server is redirecting the request for thi
DNN nav issue by imran shaikh
Hi All This is imran i am using DNN 6.0 in which issue is that while i am refreshing the site nav
RE: Problem After Attaching/Detaching Database.mdf by Prakasam Srinivasan
thanks joe! But I have connect with database.mdf file in App_Data. I detach the database from
RE: Ventrian News Article by Collin Stefani
Posted By Joseph Craig on 2012-01-18 10:51 AM I'm not sure that you can with the built-in UI.
RE: Friendly URLs Broken by Vistalogix Corporation
Well, we figured out that the problem is related to .Net framework 3.5. Friendly URLs works fine und
RE: Problem After Attaching/Detaching Database.mdf by Joseph Craig
That behavior of running the installation wizard indicates a problem connecting to the database.
RE: Friendly URLs Broken by Vistalogix Corporation
Nope, just a straight-up DNN install and configured in Host -> Friendly URLs as described in my orig
You are not logged in.
You must log in to access all 
650+ videos, tutorials, podcasts, and more.
RSS Feeds