欢迎访问2017年洛阳SEO牛广的官方博客,只要标题有亲测有效的都是原创文章。为大家提供最新真实有效的案例,承接网站SEO百度优化业务QQ:939380096

网站404页面Apache服务器配置方法-亲测有效

PHP niuguang 2912次浏览 42个评论

原来写过一个虚拟主机配置404的方法。这次洛阳SEO 牛广写一个服务器(wamp)Apache配置404页面方法。

废话不多讲 有图有真相。

服务器Apache 设置404页面有两种方法:

方法一 

在Apache 配置文件 httpd.conf  文件中 找到 #ErrorDocument 404 在 419行左右的位置。

#ErrorDocument 404 

httpd.conf 文件地址在apache文件夹下的conf文件下

apache

我把它前面的#号去掉 代表启用 后面加上你404页面的地址就可以了 如下面的代码。(就是你404页面在网站的位置我是的根目录)

ErrorDocument 404 /404.html

修改完成后重启apache服务 就OK了。

方法二

 第一步

在网站根目录创建一个 .htaccess 文件

在里面写上 下面的话就行了 跟上面的一个意思

ErrorDocument 404 /404.html

站长牛广已经写好了配置如果没有的话 下面是下载地址。

链接:http://pan.baidu.com/s/1miNj0W4 密码:bx4w

 第二步

在Apache 配置文件 httpd.conf  文件中 找到下面的模块后 把前面的#号去掉 在120行左右的位置。

LoadModule rewrite_module modules/mod_rewrite.so

修改完成后重启apache服务 就OK了。

 

以上内容由站长洛阳SEO牛广博客原创文章。真情送上。

 

 


小广 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明网站404页面Apache服务器配置方法-亲测有效
喜欢 (2)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到
(42)个小伙伴在吐槽
  1. My spouse and i ended up being so relieved when Peter could carry out his preliminary research with the precious recommendations he received using your site. It's not at all simplistic to simply happen to be handing out strategies which the rest could have been making money from. And we understand we have the website owner to be grateful to for this. The main illustrations you've made, the straightforward web site menu, the relationships you give support to instill - it's got many extraordinary, and it's really making our son and us consider that this article is enjoyable, and that's tremendously fundamental. Thanks for all! yeezy boost 350 [url=http://www.yeezyboost350v2.org.uk]yeezy boost 350[/url]
    匿名2018-06-04 03:53 回复
  2. I would like to show my passion for your kind-heartedness giving support to people who should have help on this one question. Your personal commitment to getting the message all around appears to be quite good and have continuously helped associates much like me to arrive at their pursuits. Your amazing informative information indicates a great deal a person like me and a whole lot more to my fellow workers. Thank you; from all of us. adidas eqt
    匿名2018-06-04 16:25 回复
  3. Thanks for all of your labor on this web site. Ellie takes pleasure in going through investigations and it's obvious why. A number of us know all about the powerful mode you create precious items on your web site and as well as welcome participation from others about this concern so our own child is actually learning a whole lot. Take advantage of the rest of the year. You are carrying out a very good job. adidas iniki runner
    匿名2018-06-05 05:10 回复
  4. Thank you for your entire hard work on this web site. Betty really loves working on investigation and it's simple to grasp why. My partner and i learn all concerning the lively mode you offer vital guides through this web site and recommend participation from other individuals about this situation while our daughter is starting to learn a lot. Take advantage of the rest of the year. You are carrying out a splendid job. adidas nmd
    匿名2018-06-06 01:48 回复
  5. Thanks so much for providing individuals with such a remarkable possiblity to check tips from here. It's usually so terrific and as well , stuffed with fun for me personally and my office friends to visit your blog nearly 3 times every week to read the newest guides you have. And indeed, we're certainly impressed with all the attractive opinions you serve. Some 1 areas in this posting are in fact the most impressive I've ever had. nike roshe run
    匿名2018-06-06 12:45 回复
  6. I and my friends were actually digesting the nice helpful hints from your website then suddenly came up with an awful feeling I had not expressed respect to the website owner for those techniques. Most of the guys came certainly very interested to read through them and have definitely been loving those things. I appreciate you for actually being indeed thoughtful as well as for using these kinds of marvelous issues millions of individuals are really needing to know about. Our own honest regret for not saying thanks to you earlier. vans outlet
    匿名2018-06-07 02:05 回复
  7. I'm also writing to let you be aware of of the outstanding discovery our daughter obtained reading your web page. She realized plenty of details, which include what it is like to possess a great giving mindset to have many others quite simply understand a variety of multifaceted subject matter. You undoubtedly did more than our expectations. Many thanks for providing such important, trusted, revealing and even fun tips on your topic to Jane. jordan 6
    匿名2018-06-07 14:04 回复
  8. I needed to put you one bit of note to help thank you very much as before about the unique information you have shown in this article. This is quite unbelievably generous of you to convey easily precisely what a few individuals could have marketed for an electronic book in order to make some cash for themselves, particularly since you might have done it if you wanted. These creative ideas also worked to provide a good way to be aware that other people have a similar fervor the same as my personal own to know the truth a lot more in regard to this problem. I believe there are a lot more enjoyable times up front for many who scan through your blog. stephen curry 5
    匿名2018-06-08 03:45 回复
  9. I wanted to write you that bit of note to be able to thank you the moment again relating to the pleasant thoughts you've shown in this case. It is so incredibly generous of you to deliver openly all that numerous people could have sold as an e book to earn some bucks for themselves, even more so given that you could possibly have done it if you desired. The guidelines as well acted to be the easy way to recognize that other people have similar dreams the same as mine to know the truth significantly more when considering this problem. I am certain there are numerous more enjoyable occasions up front for people who check out your website. cheap nfl jerseys
    匿名2018-06-08 15:51 回复
  10. My husband and i were really lucky Edward could deal with his reports because of the precious recommendations he had out of your web page. It is now and again perplexing to simply continually be giving away points that men and women have been trying to sell. So we discover we need the blog owner to thank for that. These illustrations you have made, the straightforward site navigation, the friendships you can help promote - it's all powerful, and it is leading our son and us imagine that this topic is entertaining, and that is wonderfully mandatory. Thanks for all the pieces! adidas nmd
    匿名2018-06-08 23:30 回复
  11. Thank you so much for providing individuals with an extremely wonderful possiblity to discover important secrets from here. It is usually very pleasing and packed with a lot of fun for me and my office fellow workers to search your web site particularly 3 times every week to read the new tips you have. And lastly, I'm usually contented with your terrific opinions served by you. Certain 4 areas in this article are essentially the most beneficial we've had. curry 4
    匿名2018-06-09 05:51 回复
  12. I simply wanted to thank you so much once more. I do not know the things I might have achieved without the entire aspects discussed by you relating to such a field. It actually was a real fearsome crisis for me personally, nevertheless observing a new specialized manner you dealt with that forced me to weep over joy. I am happier for the service and hope that you recognize what a powerful job you were undertaking educating others via a web site. I am certain you have never met any of us. prada sunglasses
    匿名2018-06-09 20:52 回复
  13. I just wanted to write down a small message to be able to express gratitude to you for those fantastic instructions you are giving out on this site. My rather long internet research has finally been rewarded with wonderful strategies to share with my friends and family. I 'd believe that we website visitors are undeniably endowed to dwell in a very good community with so many outstanding professionals with interesting things. I feel very lucky to have discovered your entire weblog and look forward to so many more fun moments reading here. Thanks a lot once more for a lot of things. birkin bag
    匿名2018-06-10 09:09 回复
  14. I as well as my friends ended up checking out the good pointers located on your site and so all of a sudden I got a horrible feeling I had not expressed respect to the web blog owner for them. The women appeared to be for this reason thrilled to study all of them and already have absolutely been enjoying them. Appreciate your genuinely so considerate as well as for making a decision on this sort of smart things most people are really wanting to discover. Our honest regret for not saying thanks to you sooner. nike zoom
    匿名2018-06-11 15:12 回复
  15. This really answered my downside, thanks!
    匿名2018-06-11 17:44 回复
  16. I as well as my pals were found to be looking at the best helpful tips on the blog and then instantly developed an awful feeling I never thanked the blog owner for them. Those guys were definitely for this reason glad to see them and have absolutely been taking advantage of them. We appreciate you turning out to be very considerate and for making a choice on this kind of excellent useful guides millions of individuals are really needing to learn about. My honest apologies for not expressing appreciation to sooner. gucci belts
    匿名2018-06-12 04:14 回复
  17. I really wanted to develop a comment so as to say thanks to you for some of the nice concepts you are showing on this website. My considerable internet investigation has at the end of the day been honored with excellent knowledge to write about with my co-workers. I 'd repeat that most of us site visitors are definitely endowed to live in a decent network with very many marvellous people with good solutions. I feel quite privileged to have used your webpages and look forward to so many more exciting moments reading here. Thanks again for everything. yeezy boost 350 v2
    匿名2018-06-12 14:13 回复
  18. Thank you for each of your hard work on this blog. My mother really loves conducting research and it's simple to grasp why. Most people hear all of the lively mode you convey rewarding tricks through your website and as well as boost participation from visitors about this concept while our own simple princess is without a doubt understanding a whole lot. Take pleasure in the rest of the year. Your doing a pretty cool job. pure boost
    匿名2018-06-12 16:25 回复
  19. A lot of thanks for your own efforts on this web site. Ellie loves managing internet research and it's really obvious why. We know all relating to the compelling manner you convey precious tips through the web site and foster response from website visitors on this situation and our favorite princess is without a doubt discovering a great deal. Take advantage of the rest of the year. Your performing a splendid job. hermes belt
    匿名2018-06-13 05:18 回复
  20. I definitely wanted to construct a small word to be able to thank you for the wonderful information you are writing here. My considerable internet lookup has finally been honored with sensible ideas to write about with my family members. I 'd assert that most of us website visitors actually are unquestionably fortunate to dwell in a perfect website with so many marvellous people with beneficial plans. I feel very happy to have seen your web page and look forward to some more exciting moments reading here. Thank you once more for all the details. longchamp
    匿名2018-06-13 16:43 回复
  21. My wife and i were really satisfied Jordan managed to finish up his studies because of the precious recommendations he discovered out of your site. It's not at all simplistic to just always be giving away hints that the others have been making money from. Therefore we remember we have got the writer to be grateful to for this. Most of the explanations you made, the easy web site navigation, the friendships you can help engender - it's mostly spectacular, and it's assisting our son in addition to our family imagine that this issue is thrilling, which is certainly extraordinarily pressing. Thank you for all! cheap jordans
    匿名2018-06-14 07:06 回复
  22. I'm writing to make you be aware of of the brilliant experience my wife's daughter encountered reading your site. She came to find too many details, most notably what it's like to possess an amazing teaching nature to let the others really easily know precisely a variety of very confusing matters. You truly did more than readers' expectations. Thanks for delivering the powerful, safe, explanatory and fun guidance on the topic to Sandra. adidas eqt support adv
    匿名2018-06-14 22:54 回复
  23. I have to voice my respect for your generosity for people who really need guidance on this one matter. Your real commitment to getting the message all through was incredibly informative and has made workers just like me to arrive at their goals. Your new invaluable help denotes this much a person like me and a whole lot more to my fellow workers. Thank you; from each one of us. chrome hearts
    匿名2018-06-15 10:24 回复
  24. I have to express my respect for your generosity for people who really need guidance on your situation. Your special dedication to passing the message along had become really useful and has in most cases allowed women just like me to achieve their aims. Your own useful useful information indicates a great deal to me and somewhat more to my office workers. With thanks; from all of us. jordan 13
    匿名2018-06-16 01:44 回复
  25. I precisely wanted to say thanks yet again. I do not know what I would have created without these smart ideas documented by you regarding such field. Completely was a real intimidating circumstance for me personally, however , encountering the very specialised way you solved the issue made me to jump for contentment. I'm just happy for your work and then sincerely hope you know what a great job that you're carrying out educating people today using your site. I'm certain you haven't come across any of us. yeezy boost
    匿名2018-06-16 05:51 回复
  26. Needed to post you that very little word to give many thanks over again for your breathtaking views you have provided above. It is particularly generous of people like you to grant freely all most people could have distributed as an ebook in making some dough for their own end, most importantly given that you could possibly have done it if you wanted. These principles in addition worked to become a good way to fully grasp that other people online have a similar keenness like my personal own to realize more and more concerning this problem. I know there are many more pleasurable sessions up front for many who scan through your website. longchamp outlet
    匿名2018-06-16 15:26 回复
  27. I in addition to my friends happened to be analyzing the great information and facts located on the website while immediately came up with a horrible suspicion I never thanked the blog owner for those tips. Most of the guys became as a result warmed to study them and have now extremely been taking pleasure in those things. Thank you for indeed being so kind and for finding such brilliant areas millions of individuals are really desirous to learn about. Our own sincere apologies for not expressing gratitude to sooner. nike huarache
    匿名2018-06-17 05:59 回复
  28. Your place is valueble for me. Thanks!?
    匿名2018-06-18 06:38 回复
  29. I must show some thanks to you for bailing me out of this type of problem. As a result of surfing through the the web and meeting tricks which were not pleasant, I believed my life was over. Living minus the approaches to the issues you've resolved all through your entire short post is a serious case, as well as the ones that would have badly damaged my career if I hadn't discovered your blog post. Your talents and kindness in controlling the whole thing was priceless. I'm not sure what I would've done if I hadn't come across such a solution like this. It's possible to at this moment look ahead to my future. Thank you very much for this expert and result oriented help. I won't hesitate to endorse your web page to any person who will need guidance about this issue. lebron 14
    匿名2018-06-18 08:37 回复
  30. I and also my friends have already been studying the excellent techniques located on your website and so instantly got a horrible suspicion I never thanked the website owner for those secrets. My boys happened to be for that reason glad to read all of them and have in effect actually been taking pleasure in those things. I appreciate you for getting quite thoughtful and for making a choice on variety of perfect ideas millions of individuals are really wanting to know about. My honest regret for not expressing appreciation to earlier. nike polo shirts
    匿名2018-06-18 23:52 (7天前)回复
  31. I really wanted to write down a brief note in order to appreciate you for the marvelous tactics you are placing on this site. My incredibly long internet look up has at the end of the day been paid with brilliant facts and strategies to go over with my family members. I 'd express that many of us visitors actually are unequivocally lucky to exist in a notable site with very many special people with interesting basics. I feel very happy to have discovered your webpage and look forward to plenty of more pleasurable times reading here. Thank you again for everything. converse outlet store
    匿名2018-06-19 10:38 (6天前)回复
  32. Thanks so much for providing individuals with an extraordinarily remarkable possiblity to check tips from here. It's usually very lovely and also full of amusement for me and my office peers to visit the blog not less than 3 times per week to read through the latest guidance you will have. And lastly, I am also always fulfilled concerning the cool information you serve. Certain 2 areas in this article are unquestionably the finest we have all ever had. adidas ultra boost
    匿名2018-06-20 00:24 (6天前)回复
  33. Thanks a lot for providing individuals with an exceptionally nice opportunity to read articles and blog posts from this web site. It's usually so cool and packed with fun for me and my office colleagues to visit your site particularly 3 times every week to learn the fresh tips you have got. And indeed, I am also usually amazed with your breathtaking ideas you serve. Certain 4 tips in this article are undeniably the simplest we have ever had. nike flyknit racer
    匿名2018-06-20 16:53 (5天前)回复
  34. I intended to create you a bit of word to finally say thank you over again regarding the striking strategies you have shown on this site. This has been quite extremely generous with people like you to convey freely exactly what a few individuals might have distributed for an e-book to end up making some cash for their own end, most importantly now that you could have tried it in case you decided. Those creative ideas in addition worked as a great way to be sure that most people have similar passion like mine to know a little more on the topic of this issue. I know there are thousands of more enjoyable periods up front for many who read through your blog. jordan retro
    匿名2018-06-21 06:08 (4天前)回复
  35. I actually wanted to send a simple word to appreciate you for all the magnificent concepts you are sharing on this website. My prolonged internet look up has at the end of the day been recognized with high-quality points to talk about with my good friends. I would tell you that we website visitors actually are very fortunate to be in a fabulous website with so many perfect people with good tactics. I feel pretty blessed to have used your entire web site and look forward to so many more fabulous minutes reading here. Thanks once again for everything. longchamp bags
    匿名2018-06-22 05:20 (4天前)回复
  36. I want to show my passion for your kind-heartedness supporting folks who really want guidance on this particular field. Your real dedication to passing the solution all over appeared to be amazingly insightful and have regularly made individuals just like me to attain their endeavors. Your personal warm and helpful instruction means a whole lot to me and much more to my fellow workers. Many thanks; from each one of us. yeezy shoes
    匿名2018-06-22 17:49 (3天前)回复
  37. My husband and i ended up being more than happy Peter managed to carry out his investigations through the ideas he discovered while using the site. It is now and again perplexing to just find yourself releasing guidelines that many people could have been selling. And we already know we have got the website owner to be grateful to for that. These illustrations you made, the easy website menu, the relationships you can give support to instill - it's got most spectacular, and it's really making our son in addition to our family believe that this subject matter is pleasurable, and that is wonderfully serious. Thank you for all! adidas nmd
    匿名2018-06-23 07:01 (2天前)回复
  38. I'm also writing to let you understand what a wonderful experience our girl enjoyed going through your site. She realized so many things, which include what it is like to possess an excellent coaching nature to get other folks very easily gain knowledge of a variety of specialized subject areas. You really exceeded our expected results. I appreciate you for providing these helpful, trusted, explanatory and cool guidance on that topic to Lizeth. yeezy boost
    匿名2018-06-23 08:05 (2天前)回复
  39. I precisely wished to appreciate you once more. I am not sure what I might have sorted out without the ways contributed by you regarding that area. It was a real frustrating situation in my position, however , observing a skilled form you processed it took me to leap over gladness. Extremely happier for your work and in addition wish you comprehend what a powerful job you are accomplishing teaching people today by way of your webblog. I am sure you've never come across any of us. asics sneakers
    匿名2018-06-23 21:26 (2天前)回复
  40. I am glad for commenting to let you be aware of of the fine discovery my wife's princess encountered reading your blog. She realized a wide variety of pieces, which included what it is like to have a very effective coaching style to get certain people just fully understand several advanced things. You undoubtedly did more than my expectations. Thank you for presenting these effective, trustworthy, educational and even cool thoughts on that topic to Tanya. yeezy
    匿名2018-06-24 08:39 (1天前)回复
  41. I wanted to type a quick note to be able to appreciate you for all of the fabulous suggestions you are writing on this website. My extended internet search has at the end been recognized with beneficial facts and techniques to talk about with my two friends. I would mention that most of us site visitors are very much blessed to dwell in a remarkable place with very many marvellous professionals with insightful secrets. I feel pretty fortunate to have used your web page and look forward to many more fun minutes reading here. Thanks a lot again for everything. yeezy
    匿名2018-06-25 00:08 (18小时前)回复
  42. I抦 impressed, I need to say. Actually hardly ever do I encounter a blog that抯 each educative and entertaining, and let me inform you, you have hit the nail on the head. Your thought is excellent; the issue is one thing that not sufficient individuals are speaking intelligently about. I'm very completely satisfied that I stumbled throughout this in my search for one thing relating to this.
    匿名2018-06-25 13:53 (4小时前)回复