开发者

CakePHP htaccess modification to allow vBulletin

I'm looking to set-up a vBulletin install next to a CakePHP install. I was planning on just popping the the vB folder into webroot, but when accessing the folder in my browser, it loses the short URL (i.e. it goes from .com/community to .com/app/webroot/community)

Because of this I wanted to put the vB folder into the root of the directory, next to the app directory, so I can access it directly via .com/community - but the htaccess file is getting in the way, complaining that it can't find the community controller.

So my question is this - what edits do I ne开发者_如何学运维ed to make to the htaccess file for it to allow access to the /community folder directly.

Thank you


Add the following line to your .htaccess file:

RewriteRule   ^(community).* - [NC,L]

This will allow direct access to the community folder which is in root directory. Accessing http://localhost/community would be possible after adding this rule.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜