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

时间:2015-04-21 15:48:55

标签: php .htaccess codeigniter mod-rewrite

我想将我的CI项目从localhost转移到实时服务器,因此我使用FTP客户端将CI的所有项目文件夹复制到public_html文件夹。

我也修改了config.php base_url fileroutes.php default_controller.htaccess directory。但没有任何工作。

public_html目录树:
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/';

Others目录包含我的css / js / img文件,所有文件都是使用base_url()调用的,所以我不认为这是一个问题

隐藏.htaccess文件夹中的public_html文件;我不知道为什么,但是当我进行搜索时,它就在这里找到了。

1 个答案:

答案 0 :(得分:2)

以。开头的文件。被认为是隐藏在Unix世界中的。如果您更改ftp程序选项以显示隐藏文件,您应该能够看到它。

相关问题