Posted in: 게시 :
1,492 views 1492 조회
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.
If you are not using 301 Redirects you are making a blogging mistake. 301 리디렉션을 사용하지 않는 경우에는 블로그 만들기 당신은 실수를합니다. 301 Redirects are easy to setup, save your google pagerank and link love, and save your visitors from a nasty “Error 404 - Not Found” page. 301 리디렉션을 쉽게 설치, 구글 페이지와 링크를 저장합니다 사랑, 그리고 불쾌한에서 방문자를 저장합니다 "라는 오류 404 -를 찾을 수없습니다"페이지를합니다. What is a 301 redirect? 301 리디렉션는 무엇입니까? It’sa single line you add to you “.htaccess” file (more on this later) that says ‘anyone that visits that URL - send them to that URL instead’. 이것 싱글 라인을 장바구니에 당신을 "합니다. htaccess"파일을 (다른 사람이 그 이상)을 밝힌다 '방문하는 사람이 구매 - 그들을 그 대안 보내기'합니다. The redirect can happen witin your site, you can redirect to an external site - it’s basically from any URL to any URL. 귀하의 사이트에 발생할 수있습니다 witin 리디렉션, 외부 사이트로 리디렉션할 수있습니다 - 이건 기본적으로 어떠한 모든 url url합니다.
Here are some scenarios where you would use a 301 redirect: 다음은 몇 가지 시나리오를 사용하는 위치하게 될 301 리디렉션 :
- You’ve changed your permalink structure 귀하의 영구 링크 구조를 변경한
- You’ve accidentally deleted a post and need to recreate it 실수로 삭제된 게시물을 당신을 재현이 필요하고
- You wish to change the post slug (url) to make it more seo friendly 원하는 게시물을 변경하는 민달팽이 ()을 더 서 우호
- You have a bunch of 404’s for pages that don’t (and maybe never) existed 당신은이 페이지에 대한 404 뭉치가 필요하지 않은 (그리고 아마도 절대)가 존재
- You recently moved from one blogging platform to another (drupal, blogger, movable type, etc., to wordpress) 귀하는 최근 한 블로그에서 다른 플랫폼으로 이동 (Drupal -, 블로그, 활자 등,이 wordpress)
- You changed, recreated, or renamed your categories 을 변경, 재현, 또는 이름을 변경 카테고리
If you’re using Wordpress, you can try and install a module to add redirects directly from your admin panel. wordpress 사용하고있는 경우하실 수있습니다 리디렉션을 시도하고 설치하는 모듈을 추가할 패널에서 직접 관리합니다. I personally have not had luck with this plugin, but some have - you’re welcome to try the 나는 개인적으로이 플러그인은 운이 없었다 있지만, 일부는 - 너를 사용해보십시오에 오신 것을 환영합니다 Objection Redirection Wordpress 301 Redirect Plugin 이의 신청 301 리디렉션 플러그 접속식 wordpress 리디렉션 and see if it works for you. 그리고이 얼마나 효과적인지 알고 있는지 확인합니다.
If it doesn’t (or if you’re not using Wordpress), you’ll need to edit your .htaccess file yourself. 하지 않으면 (또는 사용하고 있지 않은 경우 wordpress), 설정을 수정해야합니다. htaccess 파일을 자신합니다. If using Wordpress, you should already have a file called “.htaccess” in the root of your web site. wordpress를 사용하면, 당신은 이미라는 파일을 ". htaccess"해당 웹 사이트의 루트에있습니다. If not, you’ll need to create it. 제대로 동작하지 않는 경우 그것을 만들 필요합니다. Open up any text editor (notepad) on your PC. 개방하는 텍스트 편집기 (메모장)에서 컴퓨터합니다. You’ll need an FTP account and FTP access to your web site to do this. FTP를 필요로하면 데이터베이스 계정에 대한 액세스를하고 웹 사이트를 방문하여이. If using Wordpress, download your .htaccess file. wordpress 사용하는 경우, 다운로드를합니다. htaccess 파일을합니다. It should already look something like this: 그것은 이미처럼되었을 것이다 :
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . 위에 RewriteEngine <ifmodule에 mod_rewrite.c> rewritebase / / RewriteCond % (request_filename)! - f / RewriteCond % (request_filename)! - 패 rewriterule합니다. /index.php [L] </IfModule> / index.php [패 "</ ifmodule>
If you’re not using Wordpress, download your .htaccess file and open it (or create a new one if you don’t have one already). wordpress 사용하고 있지 않은 경우, 다운로드를합니다. htaccess 파일을 여십시오 (또는 계정을 새로 만들 이미하지 않은 경우). Basically - you’re going to add one line for each redirect. 기본적으로 - 당신은 한 라인을 추가가는 각 리디렉션합니다. It’s very simple: 그것은 매우 간단합니다 :
Redirect 301 “/blog” http://www.yourwebsite.com 리디렉션 301 "/ 블로그"http://www.yourwebsite.com
Redirect 301 “/page.html” http://www.yourwebsite.com/page.html 리디렉션 301 "/ page.html"http://www.yourwebsite.com/page.html
Redirect 301 “/subdir/oldpage.html” http://www.yourwebsite.com/subdir 리디렉션 301 "/ subdir / oldpage.html"http://www.yourwebsite.com/subdir
Redirect 301 “/blog” http://www.anotherwebsite.com 리디렉션 301 "/ 블로그"http://www.anotherwebsite.com
I tried several ways to do this, and this is the one that works for me every time. 여러 방법이있습니다했는데, 이것은 한 사람이 바로 때마다 위해 일한다고합니다. I’m hosted on a Linux server running Apache. 나는 리눅스 서버를 호스팅하는 아파치를 실행합니다. Every line starts with “Redirect 301 “. 로 시작하는 모든 라인 "리디렉션 301". Then (always in quotes) is the path on your server to redirect. 다음 (항상은 인용)가 서버에의 경로로 리디렉션합니다. I always start it with a slash (that means from the root of your site). 나는 항상를 시작합니다 슬래시 (즉, 귀하의 사이트의 루트에서). There is no need to write out your full domain name in the first part. 밖을 쓸 필요가 없다 전체 도메인 이름의 첫 번째 부분합니다. You can redirect a directory, a page, a page in a sub-directory, etc. Then just write the full URL to the page you are redirecting to. 리디렉션할 수있습니다 디렉토리, 한 페이지, 한 페이지에 서브 - 디렉토리, 등등 그런 제품에 대한 전체를 페이지에 당신이 리디렉션합니다. You can redirect to a page in your site, a sub-directory, or a page in a sub-directory. 귀하의 사이트에서하실 수있습니다 한 페이지로 리디렉션의 서브 - 디렉토리 또는 한 페이지에 서브 - 디렉토리합니다. You can even redirect from your site to another (external) web site. 귀하의 사이트에서하실 수있습니다 리디렉션을 다른도 (외부) 웹 사이트를합니다.
That’s it! 바로 그거야! Save you file and FTP back to the root of your web site and you’re done! FTP를 절약할 수 위로의 루트에서 파일을 사용자의 웹 사이트 및 모든 작업이 끝났습니다
The reason I had to setup some 301 Redirects is because I migrated one of my web sites from Drupal to Wordpress. 그 이유는 나는 방향을 설정 일부 301 중 하나 때문에 나는 내 웹 사이트에서 마이 그 레이션을 Drupal - wordpress합니다. With the date based permalink structure in Wordpress, the URL’s of all of my important pages with pagerank was screwed up. 영구 링크 구조를 기반으로 날짜 wordpress하면 해당이있는 페이지의 모든 페이지가 엉망 내 중요하다. They say if you redirect a page that had google page rank (to a new page) the (old) page rank will be passed on to the new page. 그들은하는 페이지를 리디렉션하는 경우 구글은 페이지 순위 (를 새로운 페이지) (오래된) 페이지 순위는 새로운 페이지를 전달합니다. I can’t verify this myself, because my redirects haven’t been in place long enough to tell. 나는이 자신을 확인할 수없습니다, 왜냐하면 내로 리디렉션의 장소에 오래되지 않았습니다 얘기합니다. I will update after they’ve been online awhile. 나는 그들이 온라인으로 업데이 트되며 잠시 후에합니다.






















July 18th, 2007 at 11:46 am 2007년 7월 18일에서 오전 11시 46분
[...] On my personal blogging site JTPRATT’s Blogging Mistakes, I just wrote a post about setting up 301 redirects. 내 개인적인 블로그 사이트에서 블로깅을 jtpratt [...]의 실수는, 전 단지 301 리디렉션을 설정하는 방법에 대해 쓴 게시물을합니다. If you don’t already know how to setup 301 directs, what they are, or how to use them - you [...] 설치 프로그램을하지 않을 경우 301 지시하는 방법을 알고, 어떻게 그들은, 또는 방법을 사용하여 - 당신 [...]
June 13th, 2008 at 9:03 pm 2008년 6월 13일에서 오후 9시 3분
Hello, I found your site while trying to find some advice on how to do 301 redirects. 안녕하십니까, 귀하의 사이트를 발견하는 동안 나는 어떤 조언을 찾으려고 노력하고 리디렉션을 수행하는 방법에 301. I just moved my blog from Blogger to Wordpress and need to forward the PR and links to the new blog. 내 블로그에서 블로그로 이동 wordpress 단지를 전달할 필요하고, 홍보 및 링크를 새 블로그를합니다.
I tried your redirects but it actually works without the quotes. 귀하의 리디렉션을 보았습니다 따옴표 그러나 실제로 작동합니다.
ie 즉
Redirect 301 /webpage.html 리디렉션 301 / webpage.html http://www.yourwebsite.com/anotherpage.html
Maybe it’sa different version of Apache or something? 아마 다른 버전의 아파치 이것 아니면 다른 것?
Anyway thanks a bunch! 어쨌든는 낱단을 감사한다!
JP 일본
JPs last blog post.. jps 마지막으로 블로그 게시물 .. Wordpress move almost complete! wordpress 이동 거의 완료되었습니다!