WOWpc's Reference...  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
'CodeIgniter'에 해당하는 글(2)
2007/06/22   CodeIgniter와 Rewrite --> .htaccess
2007/06/22   Code Igniter - Quick Chart


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...]
Tag : CodeIgniter


Code Igniter - Quick Chart


User Guide : http://ci.wowpc.net/user_guide
Tag : CodeIgniter


BLOG main image
WOWpc의 레퍼런스들...
 Notice
 Category
분류 전체보기 (68)
Script (15)
PHP (12)
FLEX (0)
HTML (6)
CSS (1)
Linux (5)
Apache (1)
MySQL (9)
Tips (5)
DOWNLOAD (14)
Private Message (0)
RollBack DATA(VAIO.. (0)
 TAGS
ssh JavaScript UltraMon location.replace CodeIgniter Ajax MySQL Dump select exclude JSON 한영선택 테이블구조 telnet mysqldump putty 한글판 php.js DBDesigner ERD MooTools putty 울트라몬 location.href ime-mode rsync MySQL excude dir
 Calendar
«   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            
 Recent Entries
자바스크립트로 이미지 오브젝..
date_add 함수
 Recent Comments
언제나 유용한 프로..
inter - 2007
 Recent Trackbacks
Javascript에서 PHP..
PHP와 Web 2.0
 Archive
2008/07
2008/03
2008/02
2008/01
2007/11
 Link Site
 Visitor Statistics
Total : 8448
Today : 6
Yesterday : 7
rss