아파치 mod_rewrite 질문이 있어요.[다른질문]
글쓴이: mclljr / 작성시간: 수, 2011/07/20 - 4:22오후
흔한 자료라고 생각해서, 구글링해서 이렇게 저렇게 해 보고 있는데요.
하고 싶은 것은, https://domain.com, https://domain.com/ 로 들어오는 경우에, https://domain.com/sub/sub/ 로 리다이렉트 하고 싶어요.(사실 jsf 때문에 이렇게...)
그래서 해 놓은 룰이 이렇습니다.
RewriteEngine On RewriteLog /usr/local/tomcat/rewrite.log RewriteLogLevel 9 RewriteCond %{HTTP_HOST} ^domain.com [NC] RewriteRule ^(.*)$ <a href="http://domain.com/FC/contents$1" rel="nofollow">http://domain.com/FC/contents$1</a> [L,R=301]
이렇게 해 놓으면, 모듈이 움직입니다..
https://domain.com/FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents//FC/contents/ 로 말이지요... -ㅅ-;
그리고 too many redirects 에러가 나옵니다.. ;;;
어떻게 해야 될까요?????
Forums:
댓글 달기