Possible Duplicate:
How can I create an error 404 in PHP?可能重复:如何在PHP中创建错误404?
how to make my own 404 page not found error in my site so it looks better than the default
when someone accesses url like this www.blablabla.com/index99.php which is doesn't exist this will automatically redirected to my own 404 page thank beforehand
如何在我的网站中找到自己的404页面找不到错误,所以当有人访问这个www.blablabla.com/index99.php这个不存在的网址时,它看起来比默认更好,这会自动重定向到我自己的404页面先谢谢
1 个解决方案
#1
48
- Make your own custom 404 page
- 制作您自己的自定义404页面
- Make an .htaccess file and place it in your root
- 创建一个.htaccess文件并将其放在root中
- Place this line inside the .htaccess file
ErrorDocument 404 http://www.domain.com/your-custom-404.php
- 将此行放在.htaccess文件中ErrorDocument 404 http://www.domain.com/your-custom-404.php
Read more here
在这里阅读更多
#1
48
- Make your own custom 404 page
- 制作您自己的自定义404页面
- Make an .htaccess file and place it in your root
- 创建一个.htaccess文件并将其放在root中
- Place this line inside the .htaccess file
ErrorDocument 404 http://www.domain.com/your-custom-404.php
- 将此行放在.htaccess文件中ErrorDocument 404 http://www.domain.com/your-custom-404.php
Read more here
在这里阅读更多