I am new to php and codeigniter.i working on a project that runs on the server abcd.comand I use htaccess code like this
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
now my project has been transferred to another server 192.000.000.000.I can access the login page when the user logs in, becomes installed and redirects to 192.000.000.000/myproject/user, and here I get an error 404
i was set base_url in config.php as shown
$config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http");
$config['base_url'] .= "://".$_SERVER['HTTP_HOST'];
$config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['index_page'] = '';
my WINSCP project structure
old one : /home/my_org/public_html/prjFolder
new one : /var/www/html/prjFolder
My .htaccess file like this
system/
application/
user_guide/
index.php
.htaccess
If anyone finds a solution, please help me ..
source
share