각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
이온디
첨부파일 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 3 / 57 pages
번호 제목 제목 조회 수 날짜날짜
659 [GitHub] 비밀글 develop 을 git pull 하기 0 2017/12/05
658 [기타] 비밀글 G Suite - 0 2018/07/26
657 비밀글 무료환율 api 0 2020/08/18
656 [웹로그] 비밀글 싸이월드는 끝이 났다. 1 2007/10/11
655 [웹로그] 비밀글 파이어폭스 즐겨찾기 관리 어떻게 할까? 1 2007/10/30
654 [브라우저] 비밀글 파이어폭스 즐겨찾기 관리 어떻게 할까? 2 2007/10/30
653 [기본] 비밀글 테터툴즈 (+티스토리) 에서 mp3 추출하기 + 뽀나스 2 2007/11/03
652 [기본] 비밀글 내 블로그에 알맞는 수익도구는 무엇일까? 3 2007/11/05
651 [브라우저] 비밀글 파이어폭스에서 mp3 재생이 안될 때 3 2007/11/17
650 [기본] 비밀글 구글 애드센스 계정의 정확한 수익 알기 3 2007/11/23
649 [기본] 비밀글 쥬크온 1분 제한 제거 패치 4 2007/11/09
648 [기본] 비밀글 블로거뉴스단에 가입하라. 4 2007/11/13

해시태그 디렉터리