Results 1 to 3 of 3

Thread: Exclude .asp from url rewrite

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Location
    Uk
    Posts
    157

    Question Exclude .asp from url rewrite

    I've installed a new wordpress website

    In order to get friendly links on the website i have added the following code to my web.config - however my existing .aspx page wont post unless i remove it

    When i click the submit button the page reloads

    Any idea how to fix it?

    Code:
        <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>
    Last edited by experience; Feb 21st, 2013 at 04:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width