티스토리 뷰

WEB,WAS/Web Server

[Apache] Redirect 설정

빼인트 2010. 7. 17. 05:40

Redirect permanent /foo http://www.example.com/bar

 

/foo URI패턴의 요청이 오면,

http://www.example.com/bar 로 Redirect 수행


/ 이하 모든 요청을 다른 도메인으로 Redirect 하기
RedirectMatch temp .* http://mcpaint.tistory.com/

만일, 1개 도메인에 여러 URI 패턴으로 구분할 경우

    <Location /uri1>

        RedirectMatch temp .* http://mcpaint.tistory.com/uri1/

    </Location>

    <Location /uri2>

        RedirectMatch temp .* http://mcpaint.tistory.com/uri2/

    </Location>

    <Location />

        RedirectMatch permanent ^/$ http://mcpaint.tistory.com/

    </Location>

 

'WEB,WAS > Web Server' 카테고리의 다른 글

[Apache] KeepAlive 설정  (0) 2010.07.17
[Apache] Alias  (0) 2010.07.17
[Apache] ErrorDocument 설정  (0) 2010.07.17
[Apache] Mime-type 설정  (0) 2010.07.17
[Apache] LogLevel  (0) 2010.07.17
[Apache] Welcome-file 설정  (0) 2010.07.17
[Apache] 디렉토리 보안설정  (0) 2010.07.17
[Apache] apachectl 명령어  (0) 2010.07.16
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함