Welcome to WebmasterWorld Guest from 35.172.100.232

Forum Moderators: ocean10000

Message Too Old, No Replies

Pattern Matching Redirect IIS 6.0

     
6:31 pm on Mar 28, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:June 16, 2003
posts: 615
votes: 0


I'm using II6 and I'm undergoing a url rewrite project to create friendly urls from existing ugly ones that use a query string.

Problem is: I've got hundreds of old urls which have SE rankings and I want to preserve their "history". Is there any way to permanently redirect them all using pattern matching with IIS 6?

Thanks in advance for any input.

7:58 pm on Mar 28, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:June 16, 2003
posts:615
votes: 0


Think I may have found an answer to my question--would this work adequately while preserving history?:

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","/new-page.asp");
}
</script>

4:46 pm on Mar 29, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:June 16, 2003
posts:615
votes: 0


Anyone? I'm certain there must be someone who's dealt with this.
5:13 pm on Mar 30, 2009 (gmt 0)

Preferred Member

10+ Year Member

joined:June 16, 2003
posts:615
votes: 0


Got the answer. Thanks for all the help out there. If anyone need to know who this is done properly please don't hesitate to sticky.
5:04 pm on Mar 31, 2009 (gmt 0)

Administrator

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:July 31, 2003
posts:12555
votes: 3


Did you consider perhaps that nobody else knew the solution? Rather than throw out the sarcasm why not publish the solution for future readers having the same issue? :)
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members