[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1328
  • Last Modified:

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
0
port_blair2001
Asked:
port_blair2001
  • 3
  • 3
1 Solution
 
paradoxengineCommented:
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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
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

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now