Note that there are some explanatory texts on larger screens.

plurals
  1. POWordPress Gravity forms with pretty url (url rewrite) on IIS7
    text
    copied!<p>We have an issue with a WordPress instance running on an IIS 7 server. Gravity forms are used to ask an user for there information. </p> <p>When we fill the Gravity form only with information entered by the user it works like a charm. Though, when some information is prefilled in the Gravity form using some extra parameters like <code>?param1=1&amp;param2=2</code> the result no entry in the database.</p> <p>If we disable the WordPress pretty URLs and add the paramaters again to URL the form works again. So, we concluded that it has <code>something</code> to do with the rewrite rules. This is as far as our current analysis goes (and my knowledge on IIS's behavior on rewrite rules).</p> <p>I added the current web.config bellow. Hope that someone can give us a hand.</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;configuration&gt; &lt;system.webServer&gt; &lt;httpErrors errorMode="Detailed"&gt; &lt;/httpErrors&gt; &lt;rewrite&gt; &lt;rules&gt; &lt;rule name="wordpress" patternSyntax="Wildcard"&gt; &lt;match url="*"/&gt; &lt;conditions&gt; &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/&gt; &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/&gt; &lt;/conditions&gt; &lt;action type="Rewrite" url="index.php"/&gt; &lt;/rule&gt;&lt;/rules&gt; &lt;/rewrite&gt; &lt;directoryBrowse enabled="false"/&gt; &lt;/system.webServer&gt; &lt;appSettings&gt; &lt;add key="Response.TrySkipIisCustomErrors" value="true"/&gt; &lt;/appSettings&gt; &lt;/configuration&gt; </code></pre> <p>The path that doesn't work as expected is - <a href="http://www.greenfields-kunstgras.nl/voetbalvelden/voetbal-kostencalculator/?utm_source=GF+NL+-+Voetbalvelden+-+Optin&amp;utm_campaign=0b940c24f2-GF+NL+-+Voetbal+-+Email1&amp;utm_medium=email&amp;utm_term=0_75d85ff960-0b940c24f2-96711629" rel="nofollow">http://www.greenfields-kunstgras.nl/voetbalvelden/voetbal-kostencalculator/?utm_source=GF+NL+-+Voetbalvelden+-+Optin&amp;utm_campaign=0b940c24f2-GF+NL+-+Voetbal+-+Email1&amp;utm_medium=email&amp;utm_term=0_75d85ff960-0b940c24f2-96711629</a></p> <p>The path that does work (if pretty urls are off) - <a href="http://www.greenfields-kunstgras.nl/?page_id=2670&amp;utm_source=GF+NL+-+Voetbalvelden+-+Optin&amp;utm_campaign=0b940c24f2-GF+NL+-+Voetbal+-+Email1&amp;utm_medium=email&amp;utm_term=0_75d85ff960-0b940c24f2-96711629#gf_2" rel="nofollow">http://www.greenfields-kunstgras.nl/?page_id=2670&amp;utm_source=GF+NL+-+Voetbalvelden+-+Optin&amp;utm_campaign=0b940c24f2-GF+NL+-+Voetbal+-+Email1&amp;utm_medium=email&amp;utm_term=0_75d85ff960-0b940c24f2-96711629#gf_2</a></p> <p>When you follow the link the initial behavior is, in both cases, as expected. Only when the form is finalized. No records are saved when using the first path. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload