Forum Moderators: open

Message Too Old, No Replies

Redirecting Dynamic URLs on IIS Server

How can you implement a 301 on a dynamic site on a IIS server?

         

PrattTA1

2:18 pm on Jul 10, 2007 (gmt 0)

10+ Year Member



I'm working with a dynamic site and I need to redirect a couple of their old dynamic URLs to new ones. Basically they moved a bunch of pages to different sections of the site and that creates new URLs for those pages - but doesn't get rid of the old ones.

For example:

I need to redirect this:
[mysite.com...]
to this:
[mysite.com...]

How would you do it? I've heard of using a commercial application called ISAPI Rewrite, but I'm not sure if it would do what I want it to (I've never used it).

pageoneresults

2:52 pm on Jul 10, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've heard of using a commercial application called ISAPI Rewrite.

Yes, it will do what you require and a lot more. ;)

I need to redirect this: http://www.example.com/doc.asp?page=8&subpage=23&subsubpage=10 to this: http://www.example.com/doc.asp?page=8&subpage=68

You may want to consider something a bit more friendlier. Since they made the change and you "have to permanently redirect", might as well do it correctly.

This...

http://www.example.com/doc.asp?page=8&subpage=68

Might become this...

http://www.example.com/docs/8/68/

But, if these are docs available to the public and you want them found in the SEs, you may want to be a little more descriptive with your file naming structure. This...

http://www.example.com/docs/8/68/

Might become this...

http://www.example.com/docs/cat/docname/

The current structure of the site will determine the best naming conventions for your URIs. ISAPI_Rewrite will give you everything you need to make it happen correctly. But, you will need a programmer who has experience with writing regular expressions, pattern matching, etc. Its not a "plug and play" solution. It takes a whole 5-10 minutes to install and after that its up to you and your programming team to write the httpd.ini file(s).

PrattTA1

4:10 pm on Jul 10, 2007 (gmt 0)

10+ Year Member



Awesome. Thank you.