dryb38654 2012-11-09 09:19
浏览 46
已采纳

CakePHP和XenForo

For my application I'm trying to implement the XenForo forum software into my CakePHP site. I've installed XenForo in AppName/app/webroot/community and the system itself works as intended. When going to http://localhost/AppName/community however, it redirects me to http://localhost/AppName/app/webroot/community/

Going to http://localhost/AppName/community/ (note the trailing slash) gives me an unmarked up page of the forum with an Error that the page could not be found.

I would like to prevent this from happening, and make XenForo use the URL I've supplied. I've tried setting the <base> to <base href="http://localhost/AppName/community/" />, but to no success.

The Board URL in the Admin CP of XenForo is also set to http://localhost/AppName/community (with no trailing slash)

If you have a clue how to fix this, that'd be great.

  • 写回答

2条回答 默认 最新

  • dongzhang8475 2012-11-22 12:15
    关注

    Didn't find an exact solution to my issue, but kind of moved around the issue by placing my community folder from /app/webroot/ to the root /. In addition I had to add this line to the .HTACCESS file: RewriteCond %{REQUEST_URI} !^/community(.*)

    Edit 11-23-2012: I seem to have found the solution I was looking for. I moved my installation back to /app/webroot and set the DocumentRoot in my vhost file accordingly:

    DocumentRoot C:/wamp/www/sitename/app/webroot

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 AT89C51控制8位八段数码管显示时钟。
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题