mod_rewrite 모듈 활성화 후, 내부 서버 오류 발생 채택완료
빌더를 설치 후,
http://www.miwit.com/b/mw_tip-3875" target="_blank" style="font-size: 12px; color: rgb(0, 0, 0); font-family: gulim; line-height: 18px;">http://mylovehouse.org/b/homepagetip-2 참고해 mod_rewrite 모듈 활성화 시키면 내부 서버 오류가 납니다.
다시, 되돌려 mod_rewrite 모듈 설정을 제거하고, apache를 재시작해도 내부 서버 오류가 지속됩니다.
설치 환경은 카페24 가상 서버 호스팅, 우분투 서버입니다.
오류 메세지
확인해보니, /home/homzzang/html/.htaccess 파일이 원인이네요. 어디를 수정해야 하는지?
html 퍼미션은 707이고, .htaccess 퍼미션은 777입니다.
.htaccess 파일의 내용입니다.
ExpiresActive On
ExpiresByType image/gif A86400
ExpiresByType image/jpg A86400
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?naver\.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?homzzang\.com [NC]
RewriteRule \.(jpe?g|gif|png|swf|flv|mp3|mp4|wma|wmv|asf|mov|avi)$ http://cfile10.uf.tistory.com/original/243DB6495275DBA920EB23">http://cfile10.uf.tistory.com/original/243DB6495275DBA920EB23 [NC,R,L]
#짧은 글 주소 (도메인/게시판 테이블 id/글번호) 바로가기
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)$ plugin/bbs_shorten/index.php?table=$1&id=$2
#제휴마케팅 (도메인/id) 바로가기
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_]+)$ index.php?mwpid=$1
#404 에러 페이지
ErrorDocument 404 http://www.homzzang.com/404">http://www.homzzang.com/404
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인
어제 이 문제로 하루 내내 씨름했는데, 덕분에 해결했네요. ^^*
좋은 하루 되세요!!