我在制作时有一个CodeIgniter网站,网址为http://example.com/ear,这意味着网站正在作为文件夹结构运行。
现在,我正在将网站从生产迁移到另一个临时环境,并将域名更改为http://ear.example.com。我更改了配置文件中的基本URL以及database.php下的数据库详细信息,但该站点显示500错误。错误是" ear.abc.com目前无法处理此请求。"
有人能帮助我吗?我在这里复制我的.htaccess
文件。如有任何疑问,请随时给我写信。
<IfModule mod_rewrite.c>
RewriteEngine On
#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#When your application folder isn't in the system folder
#This snippet prevents user access to the application folder
#Submitted by: Fabdrol
#Rename 'application' to your applications folder name.
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /index.php
注意:由于客户端政策的原因,我无法共享确切的域名,因此我正在采取&#34;示例&#34;代替实际的域名。