0

I have the following scenario.

  • Web server A: public on the Internet, IIRF (Ionic's ISAPI Rewrite Filter, current version) installed

  • Web server B: not public, on the intranet, visible to A, my ASP.NET web application is installed on, name is pgdbtest3

I configure IIRF so that any request targetting directory /MMS/ on server A is redirected to the corresponding one in B: http://pgdbtest3/MMS/. The ini file looks like:

StatusUrl /iirfStatus  RemoteOk
RedirectRule ^/MMS$         /MMS/          [I]
ProxyPass   ^/MMS/(.*)$    http://pgdbtest3/MMS/$1  [I]

It is working fine except that any post back causes an error (404 is returned). I have tried many solutions including the removal of the action attribute from the form but with no luck.

How can I fix this problem?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
MNT
  • 1
  • 2

1 Answers1

0

The problem is that when using URL rewriting the <form> control does not render the proper URL but the re-written one. The solution is to write a form control adapter. Check the solution in Handling ASP.NET postbacks with URL Rewriting.

Rui Marques
  • 3,429
  • 1
  • 22
  • 26