I want to Redirect 404 error page to index.php page since we have completely renamed all urls.. We are using PHP and the server is Windows.. We can do this in .htaccess file on Linux server.. But no idea How to do it in Windows.. Please help. This is the Question Simillar to my Question
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors>
<error statusCode="500" subStatusCode="100" path="/iisHelp/500-100.asp" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
<system.web>
<customErrors mode="Off">
<error statusCode="404" redirect="/index.html" />
</customErrors>
</system.web>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="postmaster@embassyresidency.com">
<network defaultCredentials="true" host="embassyresidency.com" />
<specifiedPickupDirectory pickupDirectoryLocation="C:\inetpub\mailroot\Pickup" />
</smtp>
</mailSettings>
</system.net>
I've used this code in web.config. But redirection is not working.. Any other ideas..