doushuichong2589 2015-03-29 04:43
浏览 50
已采纳

CakePHP:重命名文件夹时获取空白页面

I am working on a cakephp project locally then when I'm uploading it to the remote server I upload it as "projectName-new". And after doing some tests it is renamed to "projectName" and after renaming the original "projectName" to "projcetName-old".

However after renaming the new one from "projectName-new" to "projectName" I'm getting a blank page. but when I rename it back or rename it to any other name than "projectName" I can view it properly, also when I rename the "projectName-old" to "projectName" I can view that project properly.

I thought it might be something with the .htaccess but there's nothing weird in the file. Any ideas to why this might be happening?

  • 写回答

2条回答 默认 最新

  • dtc9222 2015-03-29 23:16
    关注

    Eventually it was something in the .htaccess, I changed the following:

    <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteRule    ^$ app/webroot/    [L]
       RewriteRule    (.*) app/webroot/$1 [L]
    </IfModule>
    

    And removed the $1 to be:

    <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteRule    ^$ app/webroot/    [L]
       RewriteRule    (.*) app/webroot/ [L]
    </IfModule>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度