각종 팁&정보를 나누는 곳입니다.
누군가에게 도움이 된다 싶으시면 언제라도 포스팅 :)
글 등록하기 | 내글 관리하기 | 연재글 | 보관함
이온디
첨부파일 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 21 / 57 pages
번호 제목 제목 조회 수 날짜날짜
443 원격컴퓨터소리 5251 2008/08/21
442 Microsoftp RDP Audio Driver [1] 5781 2008/08/21
441 xp 공유 안될 때 [1] 5758 2008/08/27
440 사운드카드 확인 파일 [2] 8564 2008/08/28
439 C-Media CMI8738/C3DX PCI Audio Device v5.12.1.646 Driver 파일 [1] 9478 2008/08/28
438 [윈도우] 윈도우 복구 콘솔세상풍경 10401 2008/08/30
437 [윈도우] 윈도우 복구 콘솔 명령어 리스트 13915 2008/08/30
436 메인보드 전원 케이블 연결 5979 2008/08/30
435 [윈도우] 복구콘솔 사용법 10008 2008/08/30
434 [윈도우] 복구 콘솔을 하드에 설치하는 방법 11079 2008/08/30
433 부팅 시 ntoskrnl.exe 에러 메시지가 발생을 했을 때 해결 방안 8034 2008/08/30
432 REMOTE VIEWER 3898 2008/08/30

해시태그 디렉터리

지금 이순간