0

I want to redirect

blog/customfilename.php

to

blog/customfilename

using web.configfile.

I applied this rule:

<rule name="hide .php extension" stopProcessing="true">
    <match url="(.*).php" />
    <conditions>
    <add input="is-quickbooksonline-down" matchType="IsFile" negate="true" />
    <add input="is-quickbooksonline-down" matchType="IsDirectory" negate="true" />
    </conditions>
    <action type="Rewrite" url="is-quickbooksonline-down.php" />
</rule>

but this rule applies on all routes inside blog.

I already applied all tags like in comment section. Trying

<match url = "is-quickbooksonline-down.php" />

or example does not output the desired result.

New contributor
Ali is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • <rule name="hide .php extension" stopProcessing="true"> <match url="(.*).php" /> <conditions> <add input="is-quickbooksonline-down" matchType="IsFile" negate="true" /> <add input="is-quickbooksonline-down" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="is-quickbooksonline-down.php" /> </rule> – Ali Mar 26 at 8:09
  • <match url = "is-quickbooksonline-down.php" /> or something etc no fruitful result – Ali Mar 26 at 8:10

Your Answer

Ali is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.