<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>글걸이: ApacheNginx-텍스트큐브의-글-주소를-다른-주소로-바꾸는-고쳐쓰기-규칙rewrite-rule에 달린 최근 덧글/걸린글 목록</title>
		<link>https://pat.im/</link>
		<description>적어도 한 발은 느린 뒷북 블로그</description>
		<language>ko</language>
		<pubDate>Thu, 16 Oct 2025 02:13:47 +0900</pubDate>
		<generator>Textcube 2.0.0 : Beta 3 : inquieto</generator>
		<item>
			<title>홀맨님의 덧글</title>
			<link>https://pat.im/953#comment77024</link>
			<description>항상 좋은 정보와 도움에 감사 드립니다.

저는 도메인 주소 루트에 텍큐가 깔려 있는것이 아니여서 도메인 루트로 접속하는 것을 텍큐로 이동시키기 위해 검색을 통해 도메인 루트의 .htaccess 파일을 다음과 같이 수정하였습니다.

RewriteEngine On 
RewriteBase / 
RewriteRule ^(.*)$ http://도메인 주소/tc/$1 [L,QSA]

이러한 수정으로 도메인 루트로의 접속을 텍큐로 유도하였으나, 도메인 서브 디렉토리에는 텍큐 이외에도 다른 웹보드 어플리케이션이 있어, 이쪽으로의 접속은 예외 처리하고 싶습니다.

*질문*
예를들어 텍큐 이외에도 test 라는 서브디렉토리가 있을시, 도메인주소로 접속시 기본으로 텍큐로 넘어가되, test 로의 접속만 그대로 test 로 전달하는 방법을 여쭙고자 합니다.

관련 지식이 전무하니 매번 부끄러운 수준의 질문만 드리게 되는 듯 싶습니다. 즐거운 주말 보내십시요.</description>
			<author>홀맨</author>
			<guid>https://pat.im/953#comment77024</guid>
			<comments>https://pat.im/953#comment</comments>
			<pubDate>Fri, 29 Nov 2013 19:44:31 +0900</pubDate>
		</item>
		<item>
			<title>팥알님의 덧글</title>
			<link>https://pat.im/953#comment77025</link>
			<description>RewriteEngine On 
RewriteBase / 
RewriteRule ^(test)($|/.*) - [L]
 
이렇게 해 두면 test 경로는 도메인 주소 뿌리에 있는 .htaccess의 고쳐쓰기 규칙이 적용되지 않습니다.
 
RewriteRule ^(test1|test2|test3)($|/.*) - [L]
 
예외로 할 경로명이 많다면 이렇게 여러 개 적어 줄 수도 있겠습니다.
 
저도 배우고 따라 하면서 블로그를 꾸리는 처지이고, 원리는 알더라도 기억은 잘 못합니다. 낮은 수준의 질문이 결코 아니라고 생각합니다. 이런 기회에 잊어 버린 것 복습도 할 수 있어서 좋습니다.^^</description>
			<author>팥알</author>
			<guid>https://pat.im/953#comment77025</guid>
			<comments>https://pat.im/953#comment</comments>
			<pubDate>Fri, 29 Nov 2013 20:39:23 +0900</pubDate>
		</item>
		<item>
			<title>홀맨님의 덧글</title>
			<link>https://pat.im/953#comment77027</link>
			<description>가르침에 감사 드립니다. 덕분에 잘 처리할 수 있었습니다. ^^
더군다나 응용 방법도 알려주셔서 앞으로 더많은 경우에도 대응할 수 있을듯 합니다.</description>
			<author>홀맨</author>
			<guid>https://pat.im/953#comment77027</guid>
			<comments>https://pat.im/953#comment</comments>
			<pubDate>Sun, 01 Dec 2013 13:07:13 +0900</pubDate>
		</item>
		<item>
			<title>홍길동님의 덧글</title>
			<link>https://pat.im/953#comment77155</link>
			<description>혹시 redirect 할때 변수 한글로도 가능한가요?
theLinky.com/donggun 으로 연락주세요</description>
			<author>홍길동</author>
			<guid>https://pat.im/953#comment77155</guid>
			<comments>https://pat.im/953#comment</comments>
			<pubDate>Wed, 09 Apr 2014 16:45:39 +0900</pubDate>
		</item>
		<item>
			<title>팥알님의 덧글</title>
			<link>https://pat.im/953#comment77156</link>
			<description>고쳐쓰기 규칙이 들어간 파일을 저장할 때 유니코드(UTF-8)로 저장하면 한글이 들어간 주소도 됩니다.</description>
			<author>팥알</author>
			<guid>https://pat.im/953#comment77156</guid>
			<comments>https://pat.im/953#comment</comments>
			<pubDate>Wed, 09 Apr 2014 17:35:25 +0900</pubDate>
		</item>
		<item>
			<title>헬프미ㅠㅠ님의 덧글</title>
			<link>https://pat.im/953#comment90997</link>
			<description>안녕하세요 도움을 요청하고자 글 남겨 봅니다.

RewriteCond %{HTTP_HOST} ^test.com$ [NC]
RewriteRule ^/(.*) http://www.test.com/$1 [L,R]
와 같이 www.가 없는 url로 입력이 되면 www를 붙여주는 설정이 되어 있는 상태에서

한파일만 예외를 주는 방법이 있나요?
예를 들어 http://test.com/test.html 이라고 url을 입력하면
www가 없이 http://test.com/test.html 그대로 나오게 끔 말입니다. 

방법을 찾다 찾다 이렇게 글 남겨 봅니다 .ㅠㅠ</description>
			<author>헬프미ㅠㅠ</author>
			<guid>https://pat.im/953#comment90997</guid>
			<comments>https://pat.im/953#comment</comments>
			<pubDate>Fri, 18 Sep 2015 11:11:20 +0900</pubDate>
		</item>
		<item>
			<title>팥알님의 덧글</title>
			<link>https://pat.im/953#comment90999</link>
			<description>www를 붙여 주는 식 앞쪽에

RewriteCond %{HTTP_HOST} ^test.com$ [NC]
RewriteRule ^/test.html - [L]

처럼 더 적어 주면 되지 않을까 싶습니다.

한 가지 표현 방법만 있는 것은 당연히 아니고, 여러 가지 방법이 있을 겁니다. 도메인 주소을 얼마나 많이 쓰는지와 www를 붙이지 않는 예외를 얼마나 많이 두는지에 따라 가장 쓰기 편하고 간결한 표현식이 달라질 수 있습니다.</description>
			<author>팥알</author>
			<guid>https://pat.im/953#comment90999</guid>
			<comments>https://pat.im/953#comment</comments>
			<pubDate>Fri, 18 Sep 2015 13:26:50 +0900</pubDate>
		</item>
	</channel>
</rss>
