리다이렉트

도메인 기초
방문자를 한 URL에서 다른 URL로 자동으로 포워딩하는 기술입니다.
← 용어집으로 돌아가기

Redirect 란 무엇입니까?

A redirect는 방문자와 검색 엔진을 한 URL에서 또 다른 방법으로 자동으로 전달하는 기술입니다. 사용자가 원래 URL을 요청할 때 서버는 다른 목적지로 탐색하는 지침에 응답합니다. Redirects는 웹 사이트 유지 보수, 도메인 마이그레이션, URL 복원 및 콘텐츠 위치 변경시 SEO 값을 보존하는 데 필수적입니다.

HTTP Redirects의 유형

301 - 영구 Redirect

페이지를 표시 영구적으로 이동:

HTTP/1.1 301 Moved Permanently

Location: https://newsite.com/page

302 - 임시 간접 (파운드)

임시 이동 표시:

HTTP/1.1 302 Found

Location: https://temporary-url.com/page

307 - 임시 간접 (Strict)

HTTP/1.1 버전 보존 요청 방법:

308 - 영구 Redirect (Strict)

HTTP/1.1 영구 리디렉션 보존 방법:

일반적인 Redirect 사용 사례

도메인 통합

각 도메인의 모든 변형을 다시 시작합니다:

example.com → www.example.com (or vice versa)

http:// → https://

oldbrand.com → newbrand.com

URL 구조 변경

웹 사이트 아키텍처를 재구성 할 때 :

/old-page/ → /new-page/

/category/page → /new-category/page

/blog/2020/post → /articles/post

내용 마이그레이션

플랫폼 또는 도메인간의 이동 내용:

blog.example.com/post → example.com/blog/post

oldsite.com/* → newsite.com/*

HTTPS 강화

모든 트래픽을 보안:

http://example.com → https://example.com

구현 방법

서버 구성 (Apache)

# .htaccess

Redirect 301 /old-page https://example.com/new-page

# Multiple redirects with RewriteRule

RewriteEngine On

RewriteRule ^old-path/(.*)$ /new-path/$1 [R=301,L]

# Force HTTPS

RewriteCond %{HTTPS} off

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

서버 구성 (Nginx)

# Single redirect

location /old-page {

return 301 https://example.com/new-page;

}

# Pattern-based redirect

location ~* ^/old-path/(.*)$ {

return 301 /new-path/$1;

}

# Force HTTPS

server {

listen 80;

server_name example.com;

return 301 https://example.com$request_uri;

}

JavaScript Redirect (클라이언트 사이드)

// Immediate redirect

window.location.href = "https://example.com/new-page";

// Delayed redirect

setTimeout(() => {

window.location.replace("https://example.com/new-page");

}, 3000);

메타 리프레시 (HTML)

<meta http-equiv="refresh" content="0;url=https://example.com/new-page">
*주의: SEO*에 권장하지 않음

SEO 고려

최고의 연습

1. 영구적 인 변경을위한 301 사용 : 순위 신호를 전송

2. Avoid 리다이렉트 체인 : A→B→C→D 느린 크롤러

3. 내부 링크 업데이트 : 마지막 목적지에 포인트

4. Monitor 리디렉션 성능: 관련 상품

5. 적절한 음양 설정 : Complement 리디렉션

SEO의 Redirect 충격

Redirect 유형링크 Equity 전송인덱스 업데이트
301명~90-99%이름 *
302년미니멀이름 *
Meta 새로 고침팟캐스트이름 *
·가격 :지원하다

일반적인 Redirect 문제

# # # # Redirect 체인

다수 순차적 리디렉션:

A → B → C → D (Bad: 4 hops)

A → D (Good: Direct)

Redirect 루프

무한 리디렉션 사이클:

A → B → A → B → ... (Error: ERR_TOO_MANY_REDIRECTS)

혼합 내용 Redirects

HTTP로 리디렉션하는 HTTPS 페이지 (또는 적절한 체인없이 부사장)

Properly 구현 리디렉션은 URL 또는 도메인 변경 중에 사용자 경험 및 검색 엔진 순위를 유지하기위한 필수입니다.

이 지식을 활용하세요

DomScan의 API를 사용하여 도메인 가용성, 상태 등을 확인하세요.