开发者

Cakephp .htaccess redirection

I have a site running on cakephp and I have created another site and put it on /newsite开发者_C百科 folder.

When I try to access that newsite using: mysitename.com/newsite

If is giving cakephp controller missing error.

Basically I think it has something to change in the cakephp .htaccess file to redirect properly to the newsite.

Can anyone suggest any answer?


Adding the following before your rewrite rules should prevent CakePHP from treating existing directory or file names as controllers.

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

See the Cookbook.


just put your new site in the webroot folder.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜