Advertisement:

Author Topic: Permalinks not working -- Convert Htaccess to web.config in iis problem  (Read 72 times)

samanka

  • Newbie
  • *
  • Posts: 1
Hello friends
Our host is Windows and we have to use IIS
From the Permalinks section, I enable Enable friendly urls, but there is a problem , FRIENDLY URLS AREN'T WORKING, And I know the problem comes from iis webconfig file. is there anyone using Osc on windows ? And how does the problem resolve?
Thanks

my webconfig is:

Quote
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <add name="php-php" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\php\php-cgi.exe" resourceType="File" />
        </handlers>
        <defaultDocument>
            <files>
                <add value="index.php" />
            </files>
        </defaultDocument>
 <rewrite>
 <rules>
 <rule name="HTTPS force" enabled="true" stopProcessing="true">
 <match url="(.*)" />
 <conditions>
 <add input="{HTTPS}" pattern="^OFF$" />
 </conditions>
 <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
 </rule>
 </rules>
 </rewrite>
    </system.webServer>
</configuration>