• 21-01-2023, 01:58:06
    #10
    umutyildiz adlı üyeden alıntı: mesajı görüntüle
    Merhaba,
    IIS üzerinde .htaccess kuralları çalıştıramazsınız.
    Web.config e dönüştürüp deneyin.
    .htaccess adını web.config olarak mı değiştireyim hocam ?
  • 21-01-2023, 05:31:05
    #11
    IIS için aşağıdaki web.config ayarlarını yapmalısınız.

    <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="Imported Rule 1" stopProcessing="true">
                        <match url="^.*$" />
                        <conditions logicalGrouping="MatchAny">
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                        </conditions>
                        <action type="None" />
                    </rule>
                    <rule name="Imported Rule 2" stopProcessing="true">
                        <match url="^(data|js|styles|install)" />
                        <action type="None" />
                    </rule>
                    <rule name="Imported Rule 3" stopProcessing="true">
                        <match url="^.*$" />
                        <action type="Rewrite" url="index.php" />
                    </rule>
                </rules>
            </rewrite>
            <httpErrors existingResponse="PassThrough" />
        </system.webServer>
    </configuration>