mardi 22 septembre 2020

Why ExecuteURL doesn't work in webconfig? [closed]

I used this code in to web.config in plesk.

<httpErrors errorMode="Custom" existingResponse="Auto">
 <remove statusCode="404" subStatusCode="-1" />
 <error statusCode="404" subStatusCode="-1" prefixLanguageFilePath="" path="/url.asp"  responseMode="ExecuteURL" />
</httpErrors> 

But pages did not redirect to URL.asp! I use this method to make URL friendly in classic ASP. It worked fine in other servers but I have issue in current server.

This is the plesk log:

15924728348954122126 46.224.53.248:27126 80 127.0.0.1 80
--be180000-B--
GET /url.asp?404;http://hhh.com:80/services/17/HTTP/1.1
Cache-Control: max-age=0
Connection: keep-alive
Content-Length: 0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.5



Aucun commentaire:

Enregistrer un commentaire