주제: .htaccess 파일문제...
태터툴즈를 처음 사용하는 유저입니다.
MySQL 5.0 + Apache 2.0 + PHP 5.1 (FastCGI) 환경에서
1.0 정식버전을 멀티 유저 블로그로 설치했습니다만, 전혀 사용할 수가 없습니다.
http://xxxxx.com/사용자명 이라고 입력하면 화면에 아무것도 나오지 않습니다.
http://xxxxx.com/사용자명/owner 라고 입력하면
http://xxxxx.com/blog/owner/index.php/e … .php/entry
라는 식으로 주소가 반복되어 붙어서 이동, 결국 페이지를 불러올 수 없습니다.
아무래도 Rewrite Cond 및 Rewrite Rule 에 뭔가 문제가 있는 듯 한데요.
먼저 /blog/owner/index.php 를 호출하면
여기서 /blog/owner/index.php/entry 로 이동하려고 하고
그리하여 같은 스크립트가 반복되면서 /blog/owner/index.php/entry/index.php/entry ...... 로 돌아가는 겁니다.
참고로 /blog/owner/index.php 에서 리다이렉트하기 전에 $_SERVER 값을 출력해보면 다음과 같이 나옵니다.
[REDIRECT_REDIRECT_SURI] => 1
[REDIRECT_REDIRECT_STATUS] => 200
[REDIRECT_STATUS] => 200
[SCRIPT_FILENAME] => /홈디렉토리/blog/owner/index.php
[REDIRECT_URL] => /blog/owner/index.php
[REQUEST_URI] => /사용자명/owner
[SCRIPT_NAME] => /blog/owner/index.php
[PATH_INFO] =>
[PATH_TRANSLATED] =>
[PHP_SELF] => /blog/owner/index.php
라는 문제로 thelod.net/blog
에 설치를 못하고 계시다는군요...
참고로 .htaccess 파일 내용입니다.
RewriteEngine On
RewriteBase /blog/
RewriteCond %{ENV:REDIRECT_SURI} !^$
RewriteRule (.*) - [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [L]
RewriteRule ^$ blog/index.php [E=SURI:1,L]
RewriteRule ^[0-9]+$ blog/item.php [E=SURI:1,L]
RewriteRule ^favicon\.ico$ blog/favicon.ico.php [E=SURI:1,L]
RewriteRule ^index\.gif$ blog/index.gif.php [E=SURI:1,L]
RewriteCond %{QUERY_STRING} (^|&)pl=([0-9]+)
RewriteRule ^index\.php$ %2 [NE,L]
RewriteRule ^index\.php$ blog/index.php [E=SURI:1,L]
RewriteRule ^index\.xml$ blog/rss/index.php [E=SURI:1,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule !^(blog|cache)/ - [L]
RewriteRule ^(entry|attachment|category|keylog|tag|search|plugin)/? blog/$1/index.php [E=SURI:1,L]
RewriteRule ^(.+)/[0-9]+$ blog/$1/item.php [E=SURI:1,L]
RewriteRule ^(.+)$ blog/$1/index.php [E=SURI:1,L]
Juno (2006-08-11 10:40:00)에 의해 마지막으로 수정
Bye Bye, 나의 인연이여..
그리고 마지막으로...
Thank you 모든이여...