Lunarpages主机如何自定义404错误页面
第一步:在.htaccess文件中加入如下语句:
ErrorDocument 404 /404.shtml
如果需要修改的网站目录下没有.htaccess文件自己建立一个即可.
第二步,自己建立一个404.shtml文件,放到网站的根目录就可以了
也可以使用其他后缀,只要.htaccess中指定同样的文件就可以,例如404.php
此方法也可以用于其他虚拟主机自定义错误页面
>
第一步:在.htaccess文件中加入如下语句:
ErrorDocument 404 /404.shtml
如果需要修改的网站目录下没有.htaccess文件自己建立一个即可.
第二步,自己建立一个404.shtml文件,放到网站的根目录就可以了
也可以使用其他后缀,只要.htaccess中指定同样的文件就可以,例如404.php
此方法也可以用于其他虚拟主机自定义错误页面
This entry was posted on Sunday, October 14th, 2007 at 2:00 pm and is filed under 配置, lunarpages. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Jan | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | ||||