在codeigniter中创建问题站点已转移到新域

在codeigniter中创建问题站点已转移到新域,codeigniter,Codeigniter,嘿,我有一个正在运行的网站,网址在下面 问题是当我把这个站点转移到其他域时,有index.php吗?由于URL带来了很多问题,它不会加载大部分数据 这是我的.htaccess文件 RewriteEngine on #RewriteBase /kunden/homepages/8/d232327588/htdocs/consulnet/genetech/mockups/nextcrawl/homelife/site #RewriteCond $1 !^(index\.php|resource

嘿,我有一个正在运行的网站,网址在下面

问题是当我把这个站点转移到其他域时,有index.php吗?由于URL带来了很多问题,它不会加载大部分数据

这是我的.htaccess文件

RewriteEngine on

#RewriteBase /kunden/homepages/8/d232327588/htdocs/consulnet/genetech/mockups/nextcrawl/homelife/site
#RewriteCond $1 !^(index\.php|resources|robots\.txt)
#RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteRule ^(.*)$ /index.php/$1 [L] 

# AddType x-mapp-php5 .php
#Options +FollowSymLinks

RewriteEngine On
RewriteBase /homelife/site
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css)

RewriteRule ^(.*)$ index.php?/$1 [L]

请看一下.htaccess文件中定义的URL重写。它的配置可能与新域名不匹配,或者新域名的服务器上甚至可能没有启用mod_rewrite。在不查看设置的情况下,我无法告诉您更多信息,但以下是一些关于使用CodeIgniter重写URL的精彩资源:


您是否已将.htaccess文件复制到新服务器?