douju4594 2015-04-21 15:48 采纳率: 100%
浏览 68
已采纳

CodeIgniter项目localhost到实时服务器传输

I want to transfer my CI project from localhost to a live server, so I copied all my project folders of CI to the public_html folder using FTP Client.

I modified the config.php base_url file, routes.php default_controller, .htaccess directory too. But nothing's working.

public_html dir tree:
public_html dir tree

.htaccess:

RewriteEngine On
RewriteBase

RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]

config.php:

$config['base_url'] = 'http://xxxxxxxx.com/';

The Others directory contains my css/js/img files, and all are invoked using base_url(), so I don't think that's a problem

The .htaccess file in the public_html folder is hidden; I don't know why, but when I did a search, it was found here.

  • 写回答

1条回答 默认 最新

  • dtch60248 2015-04-21 16:19
    关注

    Files starting with . are considered hidden in the Unix world. If you change your ftp program option to show hidden files, you should be able to see it.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

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