Wp Affiliate Pro - The #1 Plugin For WordPress Blogs wp를 제휴사 프로 - # 1 플러그인 WordPress의 블로그
Powered by MaxBlogPress 문서 Powered by MaxBlogPress

WordPress의 해킹 # 4 : 사용자 지정 404 오류 페이지 만들기 | JTPRATT의 블로깅 실수
JTPratt의 블로깅 실수





Home » Wordpress Hack #4: Create A Custom Error 404 Page »Wordpress 해킹 # 4 : 사용자 지정 오류 페이지는 404 작성



Posted in: 에 게시됨 :

블로그 - 설치 카테고리 이미지블로그 카테고리 이미지WordPress의 카테고리 이미지
2,093 views 2093 조회


Please note: This page was originally written in English. 주의 사항 :이 페이지는 원래 영어로 작성됐다.

The original post can be viewed 원본 게시물을 볼 수있습니다 here 여기에 .

Please note: This page was originally written in English.

The text has been translated using an online service such as Google or Babelfish.

The original post can be viewed here.


In this “Wordpress Hack” you’ll learn how to create a custom 404 Error page for your blog. 이 "Wordpress 해킹"당신이 얼마나 블로그에 대한 사용자 지정 404 오류 페이지를 작성하는 방법을 배우게 될거야. It’s helps your visitors find what they need, and also helps you not lose visitors! 그것은 귀하의 방문자 수 있도록 그들이 무엇을해야하고, 또한 방문자를 잃을 순 찾을 수 있도록!

The Wordpress “Hack-A-Thon” continues in our “ 이 Wordpress "해킹 - 한 - Thon"계속 " 30 Wordpress Hacks in 30 Days Series 30 Wordpress Hacks는 30 일 안에 시리즈 ” to help you get control of your blog! "당신 블로그의 컨트롤을 얻을 수 있도록!

One page you probably don’t look at very often (if ever) is your 404 Error page. 한 페이지가 매우 자주 (적)에서 보이지 않는 오류가 발생하여 404 페이지입니다. What is a 404 error? 404 오류는 무엇입니까? It’s when someone tries to visit something on your web site and it isn’t there - the webserver displays an error page. 누군가가 귀하의 웹 사이트에 방문했을 때 뭔가하려고하면 그것은 거기에있다 - 웹서버 오류 페이지가 표시됩니다. Normally the page is white with plain black text with a short message about “the page you’re looking for cannot be found”. 일반적으로 페이지에 대한 짧은 메시지는 "당신들이 찾고있는 페이지와 함께 평범한 흰색과 검은색 텍스트"를 찾을 수없습니다. Wordpress displays a custom 404 page based on the template file “404.php” contained within your theme directory, but by default most themes don’t have much more than “Error 404 Not Found”. 워드, 사용자 정의 404 페이지 파일 ""당신의 테마 디렉토리 내에 포함된 404.php 서식 파일을 기반으로 표시하지만 기본적으로 대부분의 테마는 많은 오류 404 "이상을 찾을 수 없어".

Currently my 404 error page is pretty useless showing just a heading “Error 404 Not found” and a white blank screen inside my wordpress template. 현재 제 404 오류 페이지가 아주 그냥 보실수있습니다 "오류 404 찾을 수없습니다 보여주는"백인 빈 화면이 내 워드 템플릿 안에 소용 없다. I’m going to fix that as I write this hack for you. 내가 고쳐보 겠어 내가이 당신을 위해 해킹을 써주세요. What causes these 404 errors? 이게 404 오류의 원인은? It only happens 2 ways, either somebody types or pastes in a bad address in the URL field of the browser, or somebody clicks on a bad link (on your site or from another site). 그것만이, 잘못된 링크에 귀하의 사이트 또는 다른 사이트에서 ()에 풀칠도 누군가 유형 또는 브라우저, 또는 누군가가 클릭의 URL 필드에 잘못된 주소에서 2 가지 일이있다. When Wordpess can’t find the page or content it displays a page using the 404.php error. Wordpess 때 페이지를 찾을 수 없다거나 페이지가 404.php 오류를 사용하여 콘텐츠가 표시됩니다. This would be a good time to mention the 이것은 말할 것도 좋은 시간이 될 것이다 404 Notifier Wordpress Plugin 404 알리미 워드 플러그인 that will email you every time someone gets a 404 error on your site. 그 때마다 누군가가 귀하의 사이트에서 404 오류를 얻습니다 이메일을 보내드립니다. It’s an important gauge of whether people are having issues with your content (being found) or not. 그것은 사람들이 과연 () 또는하지 귀하의 콘텐츠와 함께 발견되는 문제의 중요한 계기가 있어요.

A good place to start would be the 시작하기 좋은 곳이 될 것이라고 Wordpress Codex page on Creating an Error 404 Page 창조에 Wordpress Codex 국제 페이지 오류 404 페이지 . The first thing it says is that you want to remove the ugly error and replace it with something that will help visitors find their way. 써있 가장 먼저하는 일이 그 추한 오류를 제거하고 방문자가 자신의 길을 찾는 데 도움이 될 무언가로 교체하려는입니다. I couldn’t have said it better myself. 내가 말한 없었 더 나은 자신을.

It also says that you are looking for the following text, and should modify the H2 header and add some paragraphs of text below it: 그것도 당신이 다음과 같은 텍스트가 찾고있는 H2를 헤더를 수정해야하고, 아래의 텍스트의 일부 단락을 추가했다 :

 <div id="content"> <h2 class="center">Error 404 - Not Found</h2> </div> 

There isn’ta lot of “codey hocus pocus” going on there, you just want to give users a friend message, some text to humor and help them, and then it’s up to your where you want to direct them next. 요술 부리다 codey "못하므로 많이에는"거기에 가고, 당신은 단지 사용자의 유머, 일부 텍스트 메시지를주고 친구들을 도와, 그리고 나서 그 다음에 그들을 직접하려는 귀하의 어디까지가 싶어요. Some of you may want to list your most popular posts, or maybe certain categories or pages, but in my case I want to link to only a few of those. 일부는 여러분의 가장 인기있는 게시물, 아니면 특정 카테고리 또는 페이지 목록 싶지만, 내 경우에는 내가 그 중 몇 가지에 불과 링크 싶어요. Then I’m going to enlist the help of the 그러면 내가의 도움을 얻다거야 Ask Apache Google 404 Wordpress Plugin 부탁 아파치 플러그인 워드 구글 404 . It’s going to try and figure out (based on the URL) what it was they were trying to find, and display google results (for your site) to the user to try and help. 그것을 시도하고 알아낼거야 (홈페이지에) 그것은 그들을 찾으려고 노력했다 및 디스플레이 Google 결과 귀하의 사이트 ()를위한 사용자 기반을 시도하고 도움이됐다. I personally would prefer this plugin to search my blog only for results, but since this is the only plugin I could find that does this - google results will have to do. 나는 개인적으로 결과에 대해서만 내 블로그 검색하는데,이 플러그인을 선호하는 것이 이후이 전이 - 구글 결과를해야 할 것입니다 않습니다 찾을 수있는 유일한 플러그인입니다. Check out 확인 how pimped out my 404 page looks now 제 404 페이지는 이제 밖으로 포주에게 어떻게 보이는 !

예를 들어 구글 404

As you can see in the image above (or the link to view it directly) - we’ve come a long way baby! 당신의 이미지에 (또는 위의 링크를 직접 볼)을 볼 수있습니다 - 우리 아기 먼 길을 왔어요! No more bland error page, now we get an email every time a 404 not found error is generated, and the users get a friendly message with automatic google results to try and find what they were looking for! 무미 건 조한 더 이상 오류 페이지, 이제 우리가 생성됩니다, 그리고 이메일 때마다 404 찾을 수없습니다 에러가 났지만, 사용자가 자동으로 Google 검색 결과와 함께 노력에 우호적인 메시지를하고 그들이 원하는 답변을 찾을! Like I initially said - this hack helps our visitors, and helps us “keep” our visitors on the site all at the same time! 마치 내가 처음이다 -이 우리의 방문자가 도움이 해킹, 우리는 ""같은 시간에 모든 우리의 방문자를 유지하는 데 유용 사이트!

Here are some other good 404 examples to look at for inspiration: 여기에서 영감을 찾기 위해 다른 좋은 404 예입니다 :

Problogger’s 404 Page Problogger의 404 페이지
Smashing Magazine’s Error Pages Reloaded 스매싱 잡지의 오류 페이지를 로딩할
Web Professor’s 404 웹 교수의 404
Home Star Runner 홈 스타 러너

As always - if you have questions or something to add to make this hack even better, please comment now! 만약 질문이나 해킹이 더 나은 뭔가를 추가할 수 있도록 항상 그렇듯이 - 지금은 코멘트를주세요! Stay tuned for tomorrow’s Wordpress hack so we can keep pimpin’ out our blogs! 내일의 Wordpress를위한 숙박 그래서 우리가 '우리의 블로그를 밖으로 뚜쟁이 질 수있는 해킹 계속 지켜봐 주시기 바랍니다!


Tags: 태그 : , , , , ,

5 Responses to “Wordpress Hack #4: Create A Custom Error 404 Page” 5 응답을 "Wordpress 해킹 # 4 :"사용자 정의 오류 404 페이지 만들기

  1. Thaya Kareeson Thaya Kareeson Has the following to say... 다음 말하기를 ...

    Glad I stumbled onto this post. 이 게시물에 비틀 다행 이군요. I never paid enough attention to my 404 page, but I also never realized that there is a great plugin like Ask Apache Google 404 out there. 제 404 페이지 정도로 관심을 가진 적이 있지만 그 밖에 아파치 또한 Google은 404 물어처럼 훌륭한 플러그인입니다 깨닫지 못했던 것이다. Thanks! 감사합니다!

    Thaya Kareesons last blog post.. 지난 Thaya Kareesons 블로그 게시물을 .. Make WP-PostViews Work with WP-Super-Cache 포스트와 함께 작업하게 포스트 - PostViews - 슈퍼 - 캐시

  2. Acupuncture 침술 Has the following to say... 다음 말하기를 ...

    Hey JT, 이봐, JT는,
    Well, I thought about this for a second and figured, why not put my sitemap as the error page? 글쎄, 난 이것에 대해 두 번째와 생각 했지, 왜 안에 대한 오류 페이지로 내 Sitemap을 넣어 줄 알았는데?

    So I followed your lead with the content to let the visitor know that the page is not there….then I used dagon design’s sitemap generator–I know you aren’ta fan of it, but it is easy for a noob like me to use 그래서 방문자가 그 페이지가 안된다는 사실을 알려 콘텐츠와 함께 귀하의 단서를 추적 .... 그때 dagon 디자인의 Sitemap 생성기를 사용 - aren'ta 당신의 팬이 안다,하지만 나 같은 놈에 대한 쉽습니다 사용하는 =)]

    Anyways, just pasted the code suggested for the plugin to work on in a page, very easy. 어쨌든, 그냥 코드를 붙여넣은 플러그인에 대한 페이지에, 아주 쉬운 작업을 제안했다. Now my 404 page is a sitemap. 지금 내 404 페이지 사이트맵입니다.

    That works for me. 나를 위해 그 작품.

    Thanks for getting my two neurons moving 제 2 뉴런 이동 줘서 고마워 =

    Charles 찰스

    Acupunctures last blog post.. 지난 Acupunctures 블로그 게시물을 .. What are True Acupuncture points? 진정한 침술 포인트는 무엇입니까?

  3. admin 관리자 Has the following to say... 다음 말하기를 ...

    Sure, there’s no reason why you can’t use the sitemap generator as the content for your error page. 물론, 거기에 왜 당신은 오류 페이지에 대한 콘텐츠로 Sitemap 생성기를 사용할 수없는 이유가 없잖 아요. You could use archives, or anything for that matter - it’s all personal preference. 보관함, 또는 그 문제에 대해 아무것도 사용할 수있다 - 모든 개인의 취향. And, ‘anything’ is better than the Wordpress default (nothing)! 그리고, '아무것도'Wordpress 기본 (아무것도)보다 낫다!

  4. Acupuncture 침술 Has the following to say... 다음 말하기를 ...

    Agreed! 동의! You’ve opened my eyes to the wonders of manipulating themes for added content and usefulness!!!!! 당신 !!!!! 추가 콘텐츠 및 유용성에 대한 주제 조작의 경이로움에 내 눈을 떴어

    It’s greatly appreciated!!! 그것은 크게 극명하게이야!

  5. Chris at prepaid cell phones 크리스의 선불 휴대 전화에서 Has the following to say... 다음 말하기를 ...

    I’ve been trying to figure out how to do this–well, in honesty, I haven’t tried, i’ve only been thinking about it. 내가 알아낼 방법이 - 잘 할 정직, 노력하지 않은 난 오직 그것에 대해 생각을 해 봤는데 다 녔. Thankfully I stumbled on this post. 다행히 난이 게시물에 냈습니다. I think the real problem for me is that I have too many of these pages that pop up. 난 나를 위해 진짜 문제는 내가 너무 많은이 페이지의 팝업가 있다고 생각해. There’s probably a deeper problem. 아마도 더 깊은 문제가있습니다. Thanks for another informative post. 다른 유익한 게시물을 가져 주셔서 감사합니다.

    Chris at prepaid cell phoness last blog post.. 크리스의 선불 휴대 마지막 블로그 게시물 phoness .. Verizon Prepaid Cell Phones Review 버라이존의 선불 휴대 전화를 검토

Question or Comment?? 질문이나 코멘트?? Spill it Now... 안해주면 이제 ...

기쁨에 대한 의견 히에쓰!

We Reward Comments! 우리가 의견을 보상!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! 우리 dofollow 링크와 "CommentLuv"플러그인에서 모든 새 덧글 작성자 표시줄 아래에 귀하의 최신 블로그 게시물을 얻을! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! 매달 최고의 코멘트 사이드바 위젯에이 사이트의 모든 페이지의 URL을 다시 연결에 나열되어있습니다! We would like to reward you for becoming part of our community! 우리는 우리 공동체의 일부가 된 당신을 보상하고 싶습니다! Your comment is valuable not only to us, but also all the other readers of this blog! 귀하의 의견을 우리에게뿐 아니라이 블로그의 가치는 다른 모든 독자!


Click to add smilies to your post! 게시물에 웃음을 클릭하여 추가합니다! == []^ = (= ((= (|=) r에= | 8= 0=) ~= 00= (=;;=)]=;;;