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:
.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.