Home  >  Article  >  Backend Development  >  .htaccess defines 404 page problems_PHP tutorial

.htaccess defines 404 page problems_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:52:38702browse

Problems with 404 pages and .htaccess files

Create a .htaccess and that’s it
ErrorDocument 404 /missing.html

On the homepage, you need to make sure your host supports .htaccess..

To modify the conf file, you need to restart apache..

It has nothing to do with UrlRewrite, it mainly depends on whether it supports .htaccess
Add a sentence if you support:

ErrorDocument 404 /my404page.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632478.htmlTechArticle404 page and .htaccess file problem. Create .htaccess and it will be fine. ErrorDocument 404 /missing.html Home Page You Make sure your host supports .htaccess.. To modify the conf file, restart apache...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn