Would URL Rewrite mess up passing form variables?

Rich K 21 Reputation points
2022-07-01T14:22:45.953+00:00

I'm using the URL Rewrite code located at the bottom of this post.

It works great, omitting my admin directory from the rewrite
BUT
When a form is filled in and submitted on the front facing pages none of the form variables get passed and only form field names get written to the dbs.

I use a server side scripting language no ones's probably heard of www.webdna.us, but that can't be part of the problem. Other tags and contexts in webdna execute and work just fine, building pages on the fly. It's only when a form is in play things gets screwed up.

Thoughts??

    <rewrite>  
        <rules>  
            <remove name="Redirecting .html ext" />  
            <remove name="Hide .html ext" />  
            <rule name="Hide .html ext" enabled="true">  
                <match url="^(.*)" ignoreCase="true" />  
                <conditions>  
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />  
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />  
                    <add input="{REQUEST_FILENAME}.html" matchType="IsFile" />  
                </conditions>  
                <serverVariables />  
                <action type="Rewrite" url="{R:0}.html" />  
            </rule>  
            <rule name="Redirecting .html ext" enabled="true" stopProcessing="true">  
                <match url="^(?!--admin)(.*).html" />  
                <conditions logicalGrouping="MatchAny">  
                    <add input="{URL}" pattern="^(.*)\.html$" />  
                </conditions>  
                <serverVariables />  
                <action type="Redirect" url="{R:1}" />  
            </rule>  
        </rules>  
    </rewrite>  
      
Internet Information Services
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.