IIS Custom Error (rewriting urls) and POST data
Posted: Fri Oct 17, 2008 8:03 am
OK,
I'm rolling a site on an IIS server.
I have set up the equivalent of a mod_rewrite by using a custom 404 error page so that for example
www.example.com/sexy/time/123
is rewritten to
index.php
and index.php obviously routes and dispatches.
it's working just as well as it would on Apache but it seems to lose POST data somehow.
So if I set the action of a form to 'www.example.com/update/123' it will rewrite but won't carry over the POST data.
Anyone know if this is possible?
By the way I know virtually nothing about IIS and Windows in general so maybe this isn't the best way to do it..
I'm rolling a site on an IIS server.
I have set up the equivalent of a mod_rewrite by using a custom 404 error page so that for example
www.example.com/sexy/time/123
is rewritten to
index.php
and index.php obviously routes and dispatches.
it's working just as well as it would on Apache but it seems to lose POST data somehow.
So if I set the action of a form to 'www.example.com/update/123' it will rewrite but won't carry over the POST data.
Anyone know if this is possible?
By the way I know virtually nothing about IIS and Windows in general so maybe this isn't the best way to do it..