태터툴즈 소스를 수정하다가 궁금한 점이 있어 문의드립니다.
제가 지금 테스트하고 있는 환경은 다중사용자 모드 path 방식입니다.
.htaccess 파일은 이렇게 되어있구요.
#<IfModule mod_url.c>
#CheckURL Off
#</ifModule>
RewriteEngine On
RewriteBase /blogs/
RewriteCond %{ENV:REDIRECT_SURI} !^$
RewriteRule (.*) - [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [L]
RewriteRule ^$ blog/index.php [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/*$ blog/index.php [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/+[0-9]+$ blog/item.php [E=SURI:1,L]
RewriteRule ^favicon\.ico$ blog/favicon.ico.php [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/+favicon\.ico$ blog/favicon.ico.php [E=SURI:1,L]
RewriteRule ^index\.gif$ blog/index.gif.php [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/+index\.gif$ blog/index.gif.php [E=SURI:1,L]
RewriteCond %{QUERY_STRING} (^|&)pl=([0-9]+)
RewriteRule ^([[:alnum:]]+)/+index\.php$ $1/%2 [NE,L]
RewriteRule ^[[:alnum:]]+/+index\.php$ blog/index.php [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/+index\.xml$ blog/rss/index.php [E=SURI:1,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule !^(blog|cache)/ - [L]
RewriteRule ^[[:alnum:]]+/+(thumbnail)/([0-9]+/.+) cache/$1/$2 [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/+(entry|attachment|category|keylog|tag|search|plugin)/? blog/$1/index.php [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/+(.+)/[0-9]+$ blog/$1/item.php [E=SURI:1,L]
RewriteRule ^[[:alnum:]]+/+(.+)$ blog/$1/index.php [E=SURI:1,L]
예를 들어 블로그가 설치된 주소가 www.mydomain.com/blogs 라고 하고 사용자 a, b가 있을때
www.mydomain.com/blogs/tag 이렇게 연결하면 전체 사용자의 태그 목록이 나오고 (lint/tag/index.php)
www.mydomain.com/blogs/a/tag 이런 경우에는 해당하는 사용자의 태그들만 나오도록 (blog/tag/index.php)
하고 싶은데 RewriteRule을 어떤 식으로 지정해야 할지 몰라서 여기저기 고쳐봤지만 잘 안되네요 T.T
혹시 해결방법이 있다면 답변 부탁 드리겠습니다~
감사합니다!