Windows Sunucularda WebConfig Ayarı

Titan 1.x sürümünde Windows Sunucu üzerinde htaccess yerine aşağıdaki web.config ayarını kullanabilirsiniz:


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Remove index.php rule 1R" stopProcessing="true">
<match url="^(.+)$" ignoreCase="false"/>
<conditions>
<add input="{URL}" pattern="^/(media|skin|js)/" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="true"/>
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>

Cevaplar (1)


Turan Karatuğ
Software Developer - Creator of TitanMVC
1 ay önce

Teşekkürler.

Cevap Yazın


[code=php,css,sql]kod[/code] , [url=http:...com] , [img=imaj linki] , [color=renk_kodu]metin[/color]