由於 CodeIgniter 使用 index.php 當作 font controller, 所以基本上把所有的東西都 rewrite 到 index.php 就可以了! 不過由於還是有 images, js 跟 css 檔案不能做 rewrite, 所以再加上類似於 public 那一行就行了! (我習慣是把 images, js 跟 css 資料夾都放在 public 資料夾裡面)
My Stuff
Recent Posts
Recent Comments
- tzangms on StickerAction 恢復正常!
- sashimi on StickerAction 恢復正常!
- tzangms on phpQuery - PHP 處理 HTML DOM 的好幫手阿!
- CornGuo on phpQuery - PHP 處理 HTML DOM 的好幫手阿!
- StickerAction 恢復正常! « Oceanic | 人生海海 on 讓瀏覽器快取 PHP 產生的圖片
- tzangms on StickerAction 恢復正常!
- f1207bill on StickerAction 恢復正常!
- 迴紋針 on StickerAction 恢復正常!
- StickerAction 恢復正常! « Oceanic | 人生海海 on 主機資料庫大爆炸
- tzangms on CodeIgniter Layout 的做法
Tags
apple Army Blog bookmark CD CodeIgniter Computer Demo echo Firefox framework Gentoo goodness google Guitar H2O ibook iPod Java javascript kohana kuso L'Arc~en~Ciel Life Linux logic Mac Music PHP Podcast Programming Recording Server Software SQL stickeraction svn tips tools twitter twitthat Video web webdesign workingBlog
Categories
- AppEngine (1)
- Blog (29)
- bookmark (7)
- CodeIgniter (19)
- Computer (35)
- Demo (51)
- fun (3)
- Garageband (3)
- H2O (37)
- kohana (3)
- Life (246)
- lighttpd (4)
- Linux (31)
- Mac (38)
- murmur (2)
- Music (205)
- PHP (16)
- Podcast (8)
- Programming (66)
- Recording (13)
- stickeraction (6)
- Stuff (15)
- Uncategorized (212)
- Video (15)
- web (36)
- Web Design (5)
- work (1)
About This Blog
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Proin tincidunt. Suspendisse eget ligula sit amet purus suscipit adipiscing. In diam. Sed convallis, risus eget feugiat tempus, elit erat molestie lorem, id mollis est sapien id tellus. Morbi venenatis faucibus eros. Vivamus et eros. Proin mattis eros et quam. Mauris eget metus sit amet massa volutpat volutpat.
2 Comments until now
請問這段code寫哪阿@@?
Apache 也可以這樣寫嗎???
@MiniPudding
這段寫在 lighttpd.conf 就可以了~
如果是要在 Apache 上寫 CI 的 rewrite rules , 可以看看下列這篇
http://tzangms.com/blog/programming/979
Add your Comment!