cancel
Showing results for 
Search instead for 
Did you mean: 
Go to solution

Removing .php extension in URL - Windows Server

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>
1 REPLY 1
Solution

Re: Removing .php extension in URL - Windows Server

Resolved by waiting