각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
이온디
첨부파일 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 30 / 57 pages
번호 제목 제목 조회 수 날짜날짜
335 [하드웨어] 잉크 토너 구매 9524 2010/03/08
334 [생활] 원룸 알아볼 때 유의사항 10679 2010/03/09
333 [브라우저] 인터넷 익스플로러 8에서 탭 빨리 열기 12467 2010/03/17
332 [기본] 메일 사이트별 일반파일 첨부용량 가능사이즈 9663 2010/05/02
331 [기본] USB 보안 프로그램 10928 2010/05/02
330 [기본] USB 보안 관련 8264 2010/05/14
329 [기본] 작업관리자 10382 2010/05/20
328 [윈도우] USB_MultiBoot [1] 12969 2010/05/23
327 [기본] RISS 원노트로 인쇄하기 11961 2010/05/26
326 [기본] Aspire 5572ANWXCi 설치 드라이버 10756 2010/06/03
325 [윈도우] 도스에서 드라이버 레터 고정하기 [1] 11507 2010/07/12
324 [기본] HDMI 케이블 고르기 파일 [1] 10282 2010/07/14

해시태그 디렉터리

오늘의 핫게시물