각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
이온디
첨부파일 https://imweb.eond.com/webtip/163751
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>

RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www.eond.com)(:80)? [NC]
RewriteRule ^(.*) http://eond.com/$1 [R=301,L]
order deny,allow

.htaccess 파일에 RewriteEngine On에서 위와 같이 수정하면 됩니다.

이전에는 index 파일에서


$host_name = $HTTP_HOST;
if($host_name == "www.eond.com") header("Location:http://eond.com");
   
이렇게 추가했었는데 XE의 인덱스 파일에서는 제대로 먹히질 않더군요. 그래서 .htaccess 파일을 수정해주었습니다.


현재 이온디의 .htaccess 파일은 다음과 같습니다.


RewriteEngine On


RewriteCond %{HTTP_HOST} ^(www.eond.com)(:80)? [NC]

RewriteRule ^(.*) http://eond.com/$1 [R=301,L]

order deny,allow


RewriteBase /

RewriteCond $1 !^(is)/

RewriteCond %{HTTP_HOST} ^is\.eond\.com [NC]

RewriteRule ^(.*)$ /is/$1 [L]


RewriteCond %{HTTP_HOST} ^(mynote.eond.com)(:80)? [NC]

RewriteRule ^(.*) http://me.eond.com/$1 [R=301,L]

order deny,allow


#RewriteCond $1 !^(mynote)/

#RewriteCond %{HTTP_HOST} ^mynote\.eond\.com [NC]

#RewriteRule ^(.mynote)?$ ./index.php?mid=mynote [L]


RewriteCond $1 !^(me)/

RewriteCond %{HTTP_HOST} ^me\.eond\.com [NC]

RewriteRule ^(.me)?$ ./index.php?mid=mynote [L]


#RewriteRule ^(.*)$ http://eond.com/mynote/$1 [L]



코멘트 1
접기/펴기 | 댓글 새로고침
  • 홍땍땍
    감사합니다.^^!
    오전 09:32
    댓글
 
 
Total 683 articles in 4 / 57 pages
번호 제목 제목 조회 수 날짜날짜
647 [텔넷] [추천]SSH 파일 관리 명령어 - 폴더,파일의 삭제 및 압축/해제 [4] 56722 2007/03/30
646 [브라우저] 파이어폭스 Alt+S 사용하기 12509 2007/03/31
645 [기타] 폰트 설치하기 파일 9375 2007/04/16
644 [웹로그] 유니클락 블로그에 삽입하기 9422 2007/07/29
643 [미디어/녹음·재생] miniwiniFlashMusicbox 7413 2007/08/24
642 [미디어/녹음·재생] Imeem.com 과 같은 음악갤러리 사이트... esnips (by 장화신은고양이) 8674 2007/08/24
641 [백신/악성코드/보안] Windows 보안업데이트 솔루션, PCSmile 파일 9334 2007/08/26
640 [미디어/녹음·재생] flv 다운받기 (동영상 다운받기) [1] 14345 2007/08/26
639 [기타] 컴퓨터 두대로 iTunes 음악 공유하기 (by 김동범) 13049 2007/08/31
638 [기타] 블로그에 북로그 달기 파일 9407 2007/09/01
637 [생활] 운동화끈 안 풀리는 법 9972 2007/09/02
636 [기타] 국내외 뉴스를 한눈에 보자 (뉴스바다) 9149 2007/09/02

해시태그 디렉터리

오늘의 핫게시물