php - WordPress Gravity forms with pretty url (url rewrite) on IIS7 -
we have issue wordpress instance running on iis 7 server. gravity forms used ask user there information.
when fill gravity form information entered user works charm. though, when information prefilled in gravity form using parameters ?param1=1¶m2=2
result no entry in database.
if disable wordpress pretty urls , add paramaters again url form works again. so, concluded has something
rewrite rules. far our current analysis goes (and knowledge on iis's behavior on rewrite rules).
i added current web.config bellow. hope can give hand.
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webserver> <httperrors errormode="detailed"> </httperrors> <rewrite> <rules> <rule name="wordpress" patternsyntax="wildcard"> <match url="*"/> <conditions> <add input="{request_filename}" matchtype="isfile" negate="true"/> <add input="{request_filename}" matchtype="isdirectory" negate="true"/> </conditions> <action type="rewrite" url="index.php"/> </rule></rules> </rewrite> <directorybrowse enabled="false"/> </system.webserver> <appsettings> <add key="response.tryskipiiscustomerrors" value="true"/> </appsettings> </configuration>
the path doesn't work expected - http://www.greenfields-kunstgras.nl/voetbalvelden/voetbal-kostencalculator/?utm_source=gf+nl+-+voetbalvelden+-+optin&utm_campaign=0b940c24f2-gf+nl+-+voetbal+-+email1&utm_medium=email&utm_term=0_75d85ff960-0b940c24f2-96711629
the path work (if pretty urls off) - http://www.greenfields-kunstgras.nl/?page_id=2670&utm_source=gf+nl+-+voetbalvelden+-+optin&utm_campaign=0b940c24f2-gf+nl+-+voetbal+-+email1&utm_medium=email&utm_term=0_75d85ff960-0b940c24f2-96711629#gf_2
when follow link initial behavior is, in both cases, expected. when form finalized. no records saved when using first path.
well can use php (without mod_rewrite) pretty urls: solution may you. rewrite url in php without htaccess
Comments
Post a Comment