Forum Moderators: phranque

Message Too Old, No Replies

Redirect requests based on file extensions (.aspx, .php)

         

asadmoin

5:11 pm on Dec 22, 2006 (gmt 0)

10+ Year Member



Basically we want to able to redirect requests based on the type of file the browser is requesting.

http://www.example.com/file1.aspx (hosted on the current server / running IIS 6.0)

http://www.example.com/file2.php (hosted on another server / running apache on a linux machine)

Also, opinions regarding the pitfalls of such an approach vs. hosting on the same machine is also highly appreciated.

Thanks!

jdMorgan

5:55 pm on Dec 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might better off reverse-proxying the requests to the other server, instead of redirecting them. This retains the 'brand' of the IIS server's domain, and also saves the client an extra redirect per request. I'm in the Apache camp, so someone else will have to tell you how to do this on IIS.

Jim