Merhaba,

404.asp yonlendirmesi için web.config dosyanızı aşağıda ki şekilde yapılandırmanız yeterli olacaktır. Eğer web.config dosyanızda başka ayarlarda varsa httpErrors satırlarını web.config’e set etmeniz yeterli olacaktır.

 

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<directoryBrowse enabled=”true” />
<defaultDocument>
<files>
<clear />
<add value=”Default.asp” />
<add value=”index.php” />
<add value=”index.asp” />
<add value=”Default.htm” />
<add value=”index.aspx” />
<add value=”index.htm” />
<add value=”index.html” />
<add value=”default.php” />
<add value=”default.aspx” />
<add value=”iisstart.htm” />
</files>
</defaultDocument>
<httpErrors errorMode=”DetailedLocalOnly”>
<remove statusCode=”404″ subStatusCode=”-1″ />
<error statusCode=”404″ prefixLanguageFilePath=”” path=”/404.asp” responseMode=”ExecuteURL” />
</httpErrors>
</system.webServer>
</configuration>

Yorumlayın