Hiren Viradiya

Hiren Viradiya

  • NA
  • 4
  • 2.7k

I want to remove my website's .aspx extension.

Aug 7 2013 7:27 AM
I have tried following code but it doesn't working well. Help me out

<system.webServer>
    <rewrite>
        <rules>
<rule name="removeExtention" stopProcessing="true">
      <match url="(.*)" />
      <conditions>
                     <add matchType="IsFile" negate="true"/>
      </conditions>
      <action type="Rewrite" url="/{R:1}.aspx" />
        </rule>
        </rules>
    </rewrite>
</system.webServer>

Answers (1)