Hi

I purchased windows hosting for php from Godaddy. But my .htaccess is not support in windows, so i have to use web.config for my redirection and hidding the filename extension.

Can anyone please help me to fix the issue.

What problem are you facing are you not getting redirection. Please provide the info about the bugs you are getting

Its not getting redirect

Code

<system.webServer>
    <rewrite>
      <rules>
            <rule name="Imported Rule 1" patternSyntax="Wildcard">
                <match url="*"/>
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                    </conditions>
                <action type="Rewrite" url="index.php"/>
            </rule></rules>
    </rewrite>
  </system.webServer>

Thanks

here is my config file.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
            <rule name="wordpress" patternSyntax="Wildcard">
                <match url="*"/>
                    <conditions>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                    </conditions>
                <action type="Rewrite" url="index.php"/>
            </rule></rules>
    </rewrite>
  </system.webServer>
</configuration>

But even than its not working