Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirecting tabs for SEO in DNN4Redirecting tabs for SEO in DNN4
Previous
 
Next
New Post
5/24/2006 1:27 PM
 
I have a DNN2 site that has pretty good search engine rankings.  I would like to rebuild it using DNN4.

Here's my issue:

On the live DNN2 site I have links to pages like this: http://www.mydnn2.com/Default.aspx?tabid=1 (this is the home tab).

On the DNN4 site the Home page is tabid 36 - and when I type http://www.mydnn4.com/Default.aspx?tabid=1 in my address bar, DNN4 nicely ignores the query params (there is no tabid 1 in the database) and just directs me to http://www.mydnn4.com/.

This is great.  Except what happens if I have a tabid 36 on the DNN2 site with content such as "About our company"?  I would like the new DNN4 site to implement 301 redirects for URL's that existed on the DNN2 site, but do not have the same URL on the DNN4 site.  301 redirects ensure that pages indexed by search engine crawlers will still retain there relevance.

I have found some good, simple solutions for implementing a redirect programmatically (see the blog on ventrian.com).  But I'm not sure how to solve the problem of overlapping tabid's.

Can I change the tabid on the DNN4 site that conflicts with the DNN2 site?  For example, can I go into the database and change all instances of tabid=36 to tabid=360?

If I can do this, my plan is to create pages on the DNN4 site that have tabid's corresponding to tabid's on the DNN2 site - then use the 301 redirect code to redirect to the correct content (for example, send tabid=1 to tabid=360).

(I also posted this question in Scott McCulloch's forum on ventrian.com)



Charlie Solomon
Beldin Technologies
Custom Software Solutions, DotNetNuke Modules
www.beldintechnologies.com
 
New Post
5/24/2006 1:32 PM
 
charliesolomon wrote
Can I change the tabid on the DNN4 site that conflicts with the DNN2 site?  For example, can I go into the database and change all instances of tabid=36 to tabid=360?


Update:

I successfully changed the TabID in the database for the DNN4 Home tab from 36 to 360 (SQL Server 2005 Management Studio Express generates script to drop the necessary foreign keys so I can change the TabID in the appropriate tables... let me know if you want to see this script.)

I then created a new page (About Us) and DNN assigned it TabID 361.

So I used the script again to change TabID 361 to TabID 36.  Script ran fine, database is updated.  But when I type http://www.mydnn4.com/Default.aspx?tabid=36 as the URL, DNN still shows the Home page.

I tried deleting the browser cache, restarting IIS... any ideas?


Charlie Solomon
Beldin Technologies
Custom Software Solutions, DotNetNuke Modules
www.beldintechnologies.com
 
New Post
5/24/2006 1:42 PM
 
charliesolomon wrote
So I used the script again to change TabID 361 to TabID 36.  Script ran fine, database is updated.  But when I type http://www.mydnn4.com/Default.aspx?tabid=36 as the URL, DNN still shows the Home page.

I tried deleting the browser cache, restarting IIS... any ideas?


Another Update:
I am running Scott McCulloch's latest version of the Friendly Url's core provider.  I tried disabling the urlFormat="HumanFriendly" feature in web.config and now DNN is directing me to tabs as I would expect.  I then tried reenabling the urlFormat="HumanFriendly"  feature, and DNN is still directing me to tabs as expected.  I wonder if Scott's provider stores the old TabID somewhere, and disabling/reenabling this feature deleted that record?

Anyway, the TabID change is working nicely.  Now I will try implementing the 301 redirect.


Charlie Solomon
Beldin Technologies
Custom Software Solutions, DotNetNuke Modules
www.beldintechnologies.com
 
New Post
5/24/2006 5:06 PM
 
charliesolomon wrote
Now I will try implementing the 301 redirect.


That was pretty simple.  I posted the module (Beldin Redirector, DNN4 only) on my site here if you are interested.  I also posted the SQL script that I used to change the TabID in the DNN4 database.

This ended up being more of a blog entry than a forum post, but I couldn't wait!  I'm sure someone out there knows how to solve this issue in a less complicated manner, but this is working so I'm going with it.


Charlie Solomon
Beldin Technologies
Custom Software Solutions, DotNetNuke Modules
www.beldintechnologies.com
 
New Post
6/1/2006 7:24 AM
 
Hello Charlie

I started a post about 301 redirects here, and then found this... perhaps you may know the answer to my problem please?

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/mid/2108/threadid/41264/scope/posts/Default.aspx

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Redirecting tabs for SEO in DNN4Redirecting tabs for SEO in DNN4


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out