txfzq
管理员
积分 33428
发帖 13147
注册 2005-5-26
状态 离线
|
#1 free.fr自定义错误页的方法
You can customize any error pages, such as 404, (not found) or others, your visitors might encounter. They can be replaced with personalized text, or a redirection to another URL, either local or external. This is done by using an ErrorDocument command. Here are some examples :
ErrorDocument 404 /my404message.html
ErrorDocument 404 http://mylogin.free.fr
ErrorDocument 403 /accessrefused.html
This command must be in a .htaccess file. The file must be in the directory to which the error messages need to be redirected. This is usually the root directory of the website, although not necessarily.
译文:
您可以自定义任何错误页面,如404 (未找到)或其他人,您的访客可能会遇到。它们可以取代个人化的文字,或重定向到另一个URL ,无论是本地或外部。这是通过使用ErrorDocument命令。下面是一些例子:
ErrorDocument 404 / my404message.html
ErrorDocument 404 http://mylogin.free.fr
ErrorDocument 403 / accessrefused.html
此命令必须在答: htaccess的文件。该文件必须在目录中的错误信息需要重定向。这通常是根目录的网站,但不一定。
相关链接:http://www.free.fr/assistance/en ... personnalisees.html
|
|
|