<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0">
  <title type="html">글걸이: ApacheNginx-텍스트큐브의-글-주소를-다른-주소로-바꾸는-고쳐쓰기-규칙rewrite-rule에 달린 최근 덧글/걸린글 목록</title>
  <id>https://pat.im/</id>
  <link rel="alternate" type="text/html" hreflang="ko" href="https://pat.im/" />
  <subtitle type="html">적어도 한 발은 느린 뒷북 블로그</subtitle>
  <updated>2025-10-16T09:29:51+09:00</updated>
  <generator>Textcube 2.0.0 : Beta 3 : inquieto</generator>
  <entry>
    <title type="html">홀맨님의 덧글</title>
    <link rel="alternate" type="text/html" href="https://pat.im/953#comment77024" />
    <author>
      <name>홀맨</name>
    </author>
    <id>https://pat.im/953#comment77024</id>
    <published>2013-11-29T19:44:31+09:00</published>
    <summary type="html">항상 좋은 정보와 도움에 감사 드립니다.

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

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

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

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

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