Sometimes my website redirects the visitors to my error page "is_error.aspx" when some open the main page or any other pages, my website is ASP.NET and i use windows server 2012
the web.config contains this lines :
<customErrors mode="On" defaultRedirect="/is_error.html">
<error statusCode="404" redirect="/is_error.html" />
</customErrors>
</system.web>
<system.webServer>
<defaultDocument>
<files>
<add value="index.aspx" />
</files>
</defaultDocument>
<httpErrors errorMode="DetailedLocalOnly">
<remove statusCode="500" subStatusCode="-1" />
<remove statusCode="403" subStatusCode="-1" />
<remove statusCode="401" subStatusCode="-1" />
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/is_error.html" responseMode="ExecuteURL" />
<error statusCode="401" prefixLanguageFilePath="" path="/is_error.html" responseMode="ExecuteURL" />
<error statusCode="403" prefixLanguageFilePath="" path="/is_error.html" responseMode="ExecuteURL" />
<error statusCode="500" prefixLanguageFilePath="" path="/is_error.html" responseMode="ExecuteURL" />
</httpErrors>
<rewrite>
<rules>
<rule name="CanonicalHostNameRule1">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.feee3\.com$" negate="true" />
</conditions>
<action type="Redirect" url="http://ift.tt/1L3bUjJ}" />
</rule>
<rule name="feee3Https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>
</rules>
</rewrite>
</system.webServer>
The "is_error.html" page :
<html xmlns="http://ift.tt/lH0Osb">
<head>
<title>feee3.com</title>
<script type="text/javascript">
function MM_goToURL() { //v3.0
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
</script>
</head>
<body onload="MM_goToURL('parent','is_error.aspx');return document.MM_returnValue">
</body>
</html>
I don't know is the problem from redirect my domain to "www" or redirect it to "https" ! or could i write the "rewrite" section in web.config in another way? so in one line it redirect to "www" and "https" ?
Aucun commentaire:
Enregistrer un commentaire