开发者

.htaccess in cakephp

I do not want to use mod_rewrite on cakephp and I want to use cakePHP's pretty URLs. So I have removed all the .htaccess files

  1. /.htaccess
  2. /app/.htaccess
  3. /app/webroot/.htaccess

and uncommentted this line on core.php

Configure::write('App.baseUrl', env('SCRIPT_NAME'));

Noe the problem is...if I am putting controller and action in URL it is showing a 404 开发者_开发技巧not found error.

http://www.mydomain.com/controller/action - showing not found

Can anyone help me out this.


Try either:

http://www.mydomain.com/index.php/controller/action

http://www.mydomain.com/index.php?controller/action
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜