I followed the tutorialQuote:
IIS have a configuration file in root (predefinted folder: wwwroot) called web.config
if you open it will see a begin side
And end withCode:<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer>
inside there are some others impostations likeCode:</system.webServer> </configuration>
at same level than this we can add our script side for remove the extension:Code:<defaultDocument> ... </defaultDocument>
At this point you can remove the extension '.php' or '.html' in the urls!Code:<rewrite> <rules> <rule name="rewritephp"> <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}.php" /> </rule> </rules> </rewrite>
IIS will continue to read both ways!
but i have a blank page in iis :confused: