8:52 AM EST.The ultimate source for Indian Resources in USA, Canada and UK.Sign In!

301 redirect from asp.net using database table

Category: ASP.Net
view more software blogs >>
Updated: 2/20/2012 1:56:51 PM
Author: Shiju Kadamala

Duplicate urls are one of the most threatening issue for web masters regarding the search engine ranking. Also when moving the content to a different page, search engine will alarm for duplicate contents.

A single solution for all this issue is 301 redirect. But managing all this web pages is a tedious task. Recently I faced a similar issue and I decided to implement an easy solution using the database table. In my solution I am using the global.asax file to redirect the WebPages to the new location. Search engine will see 301 redirect status and crawl the new page.

Follow the following steps to implement the 301 redirection.

1: Create a database table to hold the old and the old and new web page address. Also since we need the enter web page address that is differ by upper case and lower case letters we need to create case sensitive column for [URLIn].

2. Insert all your new pages and old pages to the table

4.Create a stored procedure to check the redirect url. Also make sure that we are doing a case sensitive comparison

4. Update global.asax

5. Test the url.
User Comments/reviews
SeIbdmxGKk Hussain Say's
Rating:  8/13/2012 11:49:26 PM

Add a New Comment/Review
Display Name
Email Address:
Comment/ Review/Posting
( 1012 Charectors maximum)
Rating:     ( 1- Not Recommended  5- Highly Recommended)

Related Blogs