Windows sunucuda titanMVC

Merhabalar,

Windows sunucuda htaccess çalışmadığı için bilmeyen arkadaşlar varsa web.config dosyası aşağıdadır.


<?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>
<caching>
<profiles>
<add extension=".png" policy="CacheUntilChange" varyByHeaders="User-Agent" location="Client" />
<add extension=".gif" policy="CacheUntilChange" varyByHeaders="User-Agent" location="Client" />
<add extension=".jpg" policy="CacheUntilChange" varyByHeaders="User-Agent" location="Client" />
<add extension=".js" policy="CacheUntilChange" varyByHeaders="User-Agent" location="Client" />
<add extension=".css" policy="CacheUntilChange" varyByHeaders="User-Agent" location="Client" />
<add extension=".axd" kernelCachePolicy="CacheUntilChange" varyByHeaders="User-Agent" location="Client" />
</profiles>
</caching>
<httpProtocol allowKeepAlive="true">
<customHeaders>
<add name="Cache-Control" value="public, max-age=691200" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

Cevap Yazın


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