2016-01-23 09:44



I'm new with codeigniter and right now I'm trying to migrate a codeigniter application to another server. This application was in another server and now I want to move it to another server. In this server I have also a wordpress website and it works perfectly.

Firstly, what I have done it's a backup from the mysql database and from the files and I have move them via ftp to the another server under the /inventarios folder, so if I wrote on my browser

I should see the codeigniter application but what I receive it's a 404 error with the Wordpress interface

I have change the database.php and the another files from the config folder and it doesn't work. Why?. Under the inventarios folder I don't have a .htaccess file. Could you help me,please?. Thanks and let me know if you need more details.


The htaccess which I have in the root folder is this:

# BEGIN WordPress
  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . /index.php [L]

# END WordPress

I don't know if inside of inventarios I should place another htaccess.

Thanks so much

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • douliang2087 douliang2087 5年前

    Create sub-folder with name of inventarios in root of your host. Inside the folder upload all your CI folders(application, system, index....).

    Then go to application/config/config.php

    $config['base_url'] = '';
    点赞 评论 复制链接分享
  • dongshang6790 dongshang6790 3年前

    Also /application/config/database.php is to be edited

    点赞 评论 复制链接分享