301 Redirects in Asp.net

301 Redirects in Asp.net

I've been doing some testing on a recent DNN module and noticed some issues that I think a 301 Redirect will handle.

Doing some quick googling I came up with the following topics to setup 301 redirects in asp.net.

https://www.wwwcoder.com/main/parentid/263/site/2668/68/default.aspx

https://scottwater.com/blog/archive/2004/04/14/PermanentRedirects.aspx

I'll be building this into the module tomorrow and will report back on the results in the next couple of weeks. Currently I've got a site with close 100 pages of content, but google is only seeing 6 of those pages. I'm thinking if I implement 301 redirects for a link tracker I'm using this may help. Time will tell.

Recent Comments

Comment Avatar
You don't need a module to do this - you can use a global.asax event. See http://www.demonzmedia.com/DemonzBlog/?p=13
Posted By: Nino Paytap on Sep 2008
Comment Avatar
Good try Nino, but you're redirect code isn't using a 301 redirect.
Posted By: Chris Hammond on Sep 2008

Add Comment

Please add your comment by filling out the field(s) below. Your comment may need to be approved before it becomes visible.
Enter your first name for display with the comment
Enter your last name for display with the comment.
Enter your comment here.
If you can't type DNNRocks in, you can't post, plain and simple.
Submit Comment Cancel

Chris Hammond

Chris Hammond is a father, husband, leader, software developer, photographer and car guy. Chris focuses on the latest in technology including artificial intelligence (AI) and has spent decades becoming an expert in ASP.NET and DotNetNuke (DNN) development. You will find a variety of posts relating to those topics here on the website. For more information check out the about Chris Hammond page.

Find me on Twitter, GitHub and LinkedIn.