I have tried adding the following code to the root directory of my godaddy website, but the file extensions are still there.
<configuration> <system.webServer> <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> </system.webServer> </configuration>
Solved! Go to Solution.