각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
이온디
첨부파일 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 1 / 57 pages
번호 제목 제목 조회 수 날짜날짜
683 [메신저] 엠에센(MSN) 비번 정보 바꾸기 12485 2003/01/10
682 [미디어/녹음·재생] 동영상 파일 자르기 [1] 12063 2003/05/27
681 [유틸리티] Winamp Preferences (윈엠프 설정) 11512 2003/07/12
680 [브라우저] 브라우저로 FTP 접속하기 10639 2003/07/24
679 [윈도우] 사용하고 있는 제품 버전을 확인하는 방법 11619 2003/08/13
678 [네트워크] 윈도우98 이용하는 컴에서 윈도우2000 이용하는 컴에 들어가는 방법 11163 2003/10/06
677 [생활] 문류구 > 펜 9024 2004/04/06
676 [메신저] MSN 메신저에서 다른 메일 계정을 사용하려면? 10666 2004/04/19
675 [CGI] styxWMP 닫힌 채로 열기(by BlueZin☆) 9275 2004/05/01
674 [텔넷] tar.gz, zip, rar 압축파일의 압축하기 및 압축풀기의 텔넷 명령어 23032 2004/05/01
673 [텔넷] DB백업과 DB복구 12029 2004/05/06
672 [CGI] pinhole.pe.kr 배포 게시판 수정 부분 (by Hyunee) 9310 2004/05/06

해시태그 디렉터리

오늘의 핫게시물