<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>고유주소 on letmecompile</title><link>https://www.letmecompile.com/tag/%EA%B3%A0%EC%9C%A0%EC%A3%BC%EC%86%8C/</link><description>Recent content in 고유주소 on letmecompile</description><image><title>letmecompile</title><url>https://www.letmecompile.com/images/default-og-image.png</url><link>https://www.letmecompile.com/images/default-og-image.png</link></image><generator>Hugo -- 0.148.1</generator><language>ko-kr</language><lastBuildDate>Fri, 12 Jul 2013 14:52:20 +0000</lastBuildDate><atom:link href="https://www.letmecompile.com/tag/%EA%B3%A0%EC%9C%A0%EC%A3%BC%EC%86%8C/index.xml" rel="self" type="application/rss+xml"/><item><title>워드프레스 고유주소 원리</title><link>https://www.letmecompile.com/%EC%9B%8C%EB%93%9C%ED%94%84%EB%A0%88%EC%8A%A4-%EA%B3%A0%EC%9C%A0%EC%A3%BC%EC%86%8C-%EC%9B%90%EB%A6%AC/</link><pubDate>Fri, 12 Jul 2013 14:52:20 +0000</pubDate><guid>https://www.letmecompile.com/%EC%9B%8C%EB%93%9C%ED%94%84%EB%A0%88%EC%8A%A4-%EA%B3%A0%EC%9C%A0%EC%A3%BC%EC%86%8C-%EC%9B%90%EB%A6%AC/</guid><description>&lt;p>이글의 경우 “http://www.letmecompile.com/워드프레스-고유주소-원리” 라는 고유주소(permalink)를 갖는다. URL에는 디렉토리 구조처럼 나오면서도 워드프레스의 특정 포스트로 연결되는 이 고유주소 기능의 원리가 신기해서 구글링을 좀 해보았다.&lt;/p>
&lt;h2 id="apache-http-서버의-mod_rewrite-모듈">apache http 서버의 mod_rewrite 모듈&lt;/h1>&lt;/h2>
&lt;p>apache의 모듈중에서 mod_rewrite 가 활성화 되어 있을경우 서버내의 .htaccess 파일에 RewriteRule을 정할 수 있다. 즉, 특정 RewriteCond을 만족하는 경우 지정된 RewriteRule이 적용되어 주소를 다시 쓰게 된다. 워드프레스의 고유주소를 위한 규칙은 다음과 같이 정의되어 있다.&lt;/p>
&lt;blockquote>
&lt;p>RewriteEngine On&lt;br>
RewriteBase /&lt;br>
RewriteRule ^index.php$ – [L]&lt;br>
RewriteCond %{REQUEST_FILENAME} !-f&lt;br>
RewriteCond %{REQUEST_FILENAME} !-d&lt;br>
RewriteRule . /index.php [L]&lt;/p></description></item></channel></rss>