Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/295.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 将codeigniter迁移到其他服务器_Php_Mysql_.htaccess_Codeigniter_Migration - Fatal编程技术网

Php 将codeigniter迁移到其他服务器

Php 将codeigniter迁移到其他服务器,php,mysql,.htaccess,codeigniter,migration,Php,Mysql,.htaccess,Codeigniter,Migration,我是codeigniter的新手,现在我正在尝试将codeigniter应用程序迁移到另一台服务器。此应用程序位于另一台服务器中,现在我想将其移动到另一台服务器。在这个服务器上,我还有一个wordpress网站,它工作得非常好 首先,我所做的是从mysql数据库和文件中进行备份,我通过ftp将它们移动到/inventarios文件夹下的另一台服务器上,因此如果我在浏览器上编写 http://xxxxxx.com/inventarios 我应该看到codeigniter应用程序,但我收到的是Wo

我是codeigniter的新手,现在我正在尝试将codeigniter应用程序迁移到另一台服务器。此应用程序位于另一台服务器中,现在我想将其移动到另一台服务器。在这个服务器上,我还有一个wordpress网站,它工作得非常好

首先,我所做的是从mysql数据库和文件中进行备份,我通过ftp将它们移动到/inventarios文件夹下的另一台服务器上,因此如果我在浏览器上编写

http://xxxxxx.com/inventarios
我应该看到codeigniter应用程序,但我收到的是Wordpress界面的404错误

我已经更改了database.php和config文件夹中的其他文件,但它不起作用。为什么?在inventarios文件夹下,我没有.htaccess文件。你能帮帮我吗?。谢谢,如果你需要更多的细节,请告诉我

编辑01

我在根文件夹中拥有的htaccess是:

# 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]
 </IfModule>

# END WordPress
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
我不知道我是否应该在inventarios内部放置另一个htaccess


非常感谢

在主机根目录中创建名为inventarios的子文件夹。在文件夹内上载所有CI文件夹(应用程序、系统、索引…)

然后转到
应用程序/config/config.php

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

在主机的根目录中创建名为inventarios的子文件夹。在文件夹内上载所有CI文件夹(应用程序、系统、索引…)

然后转到
应用程序/config/config.php

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

此外,还需要编辑/application/config/database.php

此外,还需要编辑/application/config/database.php

如果在wordpress中使用协同点火器框架,那么Abdullah的答案将解决您的问题如果在wordpress中使用协同点火器框架,那么Abdullah的答案将解决您的问题Abdulla和devpro,我已经完成了,我重新启动了apache,但它不工作。url是:www.arteglobal.es(wordpress)和arteglobal.es/inventarios它将是codeigniter。@Charly66您创建了子文件夹吗?是的,我创建了。我在我的主机的根文件夹var/www/html/inventariosNope上做的,这是一个虚拟服务器中的internet服务器。您的htaccess将页面重定向到WordPress非常感谢Abdulla和devpro,我已经做了,我重新启动了apache,但它不起作用。url是:www.arteglobal.es(wordpress)和arteglobal.es/inventarios它将是codeigniter。@Charly66您创建了子文件夹吗?是的,我创建了。我是在我的主机的根文件夹var/www/html/inventariosNope上做的,这是虚拟服务器中的一个internet服务器。您的htaccess会将页面重定向到wordpress