Link to home
Start Free TrialLog in
Avatar of vinyla
vinyla

asked on

Using Helicon ISAPI_Rewrite 3 looses form POST data

Hi,

I have the MODx CMS system installed on IIS6 and am using ISAPI_Rewrite 3 to enable Search Engine Friendly URLs.

The code I have works nicely to rewrite /index.php?id=2 etc. to say /friendly-name.htm.  Issue comes with Form POST data going missing on the login and contact forms.  The forms work correctly when Friendly URLs are disabled.  

The ISAPI_Rewrite 3 logfiles show no errors.

I've asked for help on the MODx Forum but have had no response in 3 days.  The Live HTTP Headers AddOn for Firefox shows the data being posted when a form is submitted but the resulting web page does not see the data.

Can anyone advise what I can do to figure where the POST data is going to and how to ensure it survives the ISAPI_Rewrite Process?

My httpd.ini file is below.

Thanks,

Chris


RewriteEngine On
RewriteCompatibility2 On
RepeatLimit 32
RewriteBase

# ensure any POST data is available after url is rewritten
RewriteCond %{REQUEST_METHOD} !^POST$ [NC]


#  Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule ^/httpd(?:\.ini|\.parse\.errors).*$ / [NC,F,O]
#  Block external access to the Helper ISAPI Extension
RewriteRule ^.*\.isrwhlp$ / [NC,F,O]

RewriteRule ^/(?!(?:manager|assets)/)(.*)\.html(?:\?(.*))?$ /index.php?q=$1?2&$2: [NC,L,U]

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Steve Bink
Steve Bink
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial