redirect link to another server

Please provide your expertise
Currently We have a sever which store documents (5 million approximately) like word, excel, .msg files etc, users access those documents using hotlinks. We have copied all the documents from current server to a new server on windows 2003 server running iis 6.0.

The current server running apache will be decommisioned very soon.So our plan is when a user tries to access the old server we will change the dns to point to the new server.

Say for example link to current servers is http://domino/marketing?docid=102345-item=4545, so when the user tries to access the link ...we like to grab the docid from query string then modified the url to some thing like this
http://newserer/xxxxx/xxxx on the fly. What woyuld be the best way to achieve the same
this is wahat our requirement for now...will update if requirement changes

I was thinking of using isapi_rewrite filter.....but not sure that is the right direction for this requirement
port_blair2001Asked:
Who is Participating?
 
paradoxengineConnect With a Mentor Commented:
What you need - under apache - is mod rewrite. A quick search turned out a lot of results for iis too:
http://www.micronovae.com/ModRewrite/ModRewrite.html
http://www.motobit.com/help/url-replacer-rewriter/iis-mod-rewrite.asp

Some of those software are freeware or available in demo mode so you can test them before deploying.
0
 
port_blair2001Author Commented:
Apache server will not exist, we will be pointing DNS name to new server.
when a user tries to access a link on apache it will be redirect to the new server on the dns level.
In the new server running on IIS i want to grab the requested URL and modify it
0
 
paradoxengineCommented:
I understand you are using IIS: as you might see clicking on the url I provided, they are referring to IIS versions of mod-rewrite, i.e. exactly what you need.
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
port_blair2001Author Commented:
0
 
ahoffmannCommented:
> Apache server will not exist, we will be pointing DNS name to new server.
you need a virtual web server on the "new server" responding to queries for the "old DNS"
this is done very simple using apache, which then redirect or rewrites to the new server
(sorry not sure if IIS can do that out of the box too)
0
 
paradoxengineCommented:
how to do it depends on the very package you are using. You have to configure a virutal server as ahoffmann points out, then use one of the packages I pointed you to in my first post. Syntax will change a lot, but you can easily figure it out from the docs of any of those softwares.
0
 
port_blair2001Author Commented:
I ended up using helicontech isapi_rewrite
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.