How to style 404 page in WAMP server

前端 未结 5 1455
夕颜
夕颜 2021-01-05 23:05

I am using a WAMP server and I need to change the \"404 not found page\" style using CSS. How can I do it?

\"ent

5条回答
  •  醉梦人生
    2021-01-05 23:30

    if there are many sites hosted on your server and you want a different message for each site, adding ErrorDocument 404 to .htaccess file is the way to go.

    If you want the same error message to occur across all the websites, then setting ErrorDocument in httpd.conf is the way to go.

提交回复
热议问题