[PHP] Apache mod_rewrite 사용하기

./configure --enable-rewrite

사용자 삽입 이미지


<Directory "/document_root">
        AllowOverride FileInfo   # or All
    </Directory>

RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9])$ $1.php
# 희안하게 RewriteBase 를 설정안하면 작동을 안한다. 원래 그런가...


# 텍스트규브 .htaccess
#<IfModule mod_url.c>
#CheckURL Off
#</IfModule>
#SetEnv PRELOAD_CONFIG 1
RewriteEngine On
RewriteBase /tc/
RewriteRule ^(thumbnail)/([0-9]+/.+)$ cache/$1/$2 [L]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(cache)+/+(.+[^/]).(cache|xml|txt|log)$ - [NC,F,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ rewrite.php [L,QSA]



Posted by incree

2013/10/30 15:34 2013/10/30 15:34
,
Response
0 Trackbacks , 0 Comments
RSS :
http://www.incree.com/tc/incree/rss/response/290

Trackback URL : 이 글에는 트랙백을 보낼 수 없습니다

« Previous : 1 : ... 57 : 58 : 59 : 60 : 61 : 62 : 63 : 64 : 65 : ... 148 : Next »

Notices

Archives

Authors

  1. incree

Recent Trackbacks

Calendar

«   2018/12   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          

Site Stats

Total hits:
508457
Today:
241
Yesterday:
319