doucuan5365 2015-01-21 02:46
浏览 46

Cakephp和moodle在同一台服务器cpanel上

i have my site published on a server. I'm using CakePHP to this site. Now i want to integrate a Moodle (is something like Wordpress or Joomla) but, when i'm trying to access to the moodle folder (on the server) there is a problem.... because CakePHP try to match the folder moodle like it was a CakePHP controller... but it isn't ... what can i do to have both aplications running on the same server?. I think i have to do something on the cpanel but i don't know what exactly.

PD. Excuse my bad english xD

  • 写回答

1条回答 默认 最新

  • druzuz321103 2015-01-22 11:16
    关注

    Replace your code of .htaccess file in root folder

    <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteRule    ^$ app/webroot/    [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule    (.*) app/webroot/$1 [L]
    </IfModule>
    

    Thanks..!

    评论

报告相同问题?

悬赏问题

  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害