Merhaba değerli arkadaşlar. Laravel 5.8 ve Vue.js kullanarak geliştirdiğim yazılımı bazı kısıtlardan dolayı IIS üzerinde host etmem gerekti. Aşağıya eklediğim web.config dosyası url rewrite işlemini istediğim gibi yapmakta ancak font klasörüne gelince nedense url rewriting çalışmamakta yani http://.../otomasyon/public olan url http://.../otomasyon olarak tekrar yazılmakta ve public klasöründeki js ve css dosyaları doğru şekilde yüklenmektedir. Ne var ki fontawsome ve @mdi fontlar için http://.../otomasyon/fonts yerine http://.../otomasyon/public/fonts klasörüne gitmesi gerekiyor. web.config ile ilgili bir problem olduğunu düşünmekteyim. Sizlerden de yorum ve destek bekliyorum.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<handlers>
<remove name="PHP_via_FastCGI" />
</handlers>
<httpErrors errorMode="Detailed" />
<staticContent>
<clientCache cacheControlCustom="public" cacheControlMode="UseMaxAge" cacheControlMaxAge="365.00:00:00" />
<remove fileExtension=".woff" />
<remove fileExtension=".woff2" />
<mimeMap fileExtension=".woff" mimeType="application/font-woff" />
<mimeMap fileExtension=".woff2" mimeType="application/font-woff2" />
</staticContent>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="(.+)/$" ignoreCase="false" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{C:1}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{URL}" pattern="(\.woff|.\woff2|\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
<rule name="Imported Rule 3" stopProcessing="true">
<match url="^(woff|woff2|css|js|images)/(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{URL}" pattern="^/public/" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="public/{R:1}/{R:2}" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<customErrors mode="on"/>
<compilation debug="true"/>
</system.web>
</configuration>
Teşekkürler...