Any one know how to remove the extension like .HTML?
Go to solution
Solved by laxer,
You have to nest it correctly
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite> <rules> <rule name="html rewrite"> <!--Removes the .html extension for all pages.--> <match url="(.*)" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="{R:1}.html" /> </rule> </rules></rewrite></system.webServer></configuration>
I think that is pretty close to correct, I am at work and cannot test it.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now