| |
|
| CodeIgniter와 Rewrite --> .htaccess |
|
|
|
RewriteEngine On RewriteCond $1 !^(index\.php|css|js|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
-------------------------------------------------
루트디렉토리에 .htaccess 파일을 만들고 위의 내용을 입력한다.
index.php와 css디렉토리, js디렉토리, robots.txt 파일은 Rewrite 하지 않는다. 그 외의 파일들은 index.php 이하의 파라미터로 넣는것으로 한다.
형식은 http://ci.wowpc.net/guestbook/do_write http://ci.wowpc.net/[Control]/[Class]/[Parameters...] |
|
| Track this back : http://wow-reference.tistory.com/trackback/60 |
|
|
|
|
|
«
2008/08
»
| 일 |
월 |
화 |
수 |
목 |
금 |
토 |
| |
|
|
|
|
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 |
|
|
|
|
|
|
|
Total : 8448
Today : 6
Yesterday : 7 |
|
|
 |
 |
 |
|