• HOME
  • DOCS
  • WTF
  • TECH
  • LIFE
  • PAGES
    • ARCHIVE
    • TAGS
    • ABOUT
    • FRIENDS
    • RSS
  • TOOLS
    • GEO
    • RANDOM()
    • GOO.GL
    • CSS HEART
Aj's Blog

记录时间溜走的瞬间和折腾过的那些事

Cakephp with iis: url rewrite issues
2012-02-19 @ TECH CakephpIISUrl Rewrite

1、if you have lots of url rewite rules, this method is recommanded

file: app/core.php

line: 95

original: //Configure::write(‘App.baseUrl’, env(‘SCRIPT_NAME’));

modify: Configure::write(‘App.baseUrl’, env(‘SCRIPT_NAME’));

url: that will add “/index.php/” to you url for default portal for all controller

then:  remove .htaccess files

done!

2、url rewriter ISAPI fliters for IIS

http://www.iismods.com/

http://www.isapirewrite.com/

after install the fliters, you have to reconfig rewrite rules for you app, as RegEx and syntax of those rewriter is different from apache more or less.

3、documents

http://tobint.com/blog/installing-cakephp-on-iis-7/

http://bakery.cakephp.org/articles/filippo.toso/2008/01/29/cakephp-on-iis

http://blogs.iis.net/tobintitus/archive/2009/04/03/installing-cakephp-on-iis-7.aspx [dotNET framework rewrite]

下一篇:   kloxo+linux: 磁盘空间清理
上一篇:   如何通过GAE+GoAgent搭建代理
暂无评论

Cancel reply