(XAMPP)在Apache中将语言环境更改为英语

时间:2014-11-19 07:04:50

标签: php apache xampp

当我输入incorrected url时:

    http://localhost/404url

来自服务器的响应消息不是英文:

  

Objet nontrouvé!

     

L'Uppelderéen'apaspuêtretrouvéesurce serveur。 Si vous avez   tapél'URLàlamain,veuillezvérifierl'orthographeetréessayer。

     

Si vous pensez qu'il s'agit d'une erreur du serveur,veuillez   contacter le webmestre。

如何将默认语言更改为英语?

谢谢,

1 个答案:

答案 0 :(得分:1)

转到 - > xampp \ apache \ error 并打开 HTTP_NOT_FOUND.html.var ,然后在文件中添加以下代码,保存并重新启动apache。

Content-language: en
Content-type: text/html; charset=UTF-8
Body:----------en--
<!--#set var="TITLE" value="Object not found!"
--><!--#include virtual="include/top.html" -->

    The requested URL was not found on this server.

  <!--#if expr="-n v('HTTP_REFERER')" -->

    The link on the
    <a href="<!--#echo encoding="url" var="HTTP_REFERER" -->">referring
    page</a> seems to be wrong or outdated. Please inform the author of
    <a href="<!--#echo encoding="url" var="HTTP_REFERER" -->">that page</a>
    about the error.

  <!--#else -->

    If you entered the URL manually please check your
    spelling and try again.

  <!--#endif -->

<!--#include virtual="include/bottom.html" -->
----------en--

希望,这将解决您的问题。