【发布时间】:2016-08-16 23:28:54
【问题描述】:
我已经在 Codeigniter 上完成了一个项目,并将其上传到我的域(如域/项目)上,但它没有运行。它显示 error page not found !我已经更改了我的配置文件并编辑了 database.php,但仍然没有运行并抛出此错误,任何机构都可以帮助我吗?
这里是配置设置
$config['base_url'] = 'http://localhost/crm/';
并在database.php中
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'crm_valentine',
'dbdriver' => 'mysqli',
我的项目文件中的 htaccess 是
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
我都试过了,但它产生了这个错误 内部服务器错误
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at webmaster@bdprogrammer.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
【问题讨论】:
-
你检查了.htaccess
-
我的项目文件中的 htaccess 是
-
试试这个
RewriteEngine On RewriteBase /projectname/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /projectname/index.php [L] -
将您的基本网址从
http://localhost/crm/更改为http://domainname/crm/ -
我都试过了,但它产生了这个错误
标签: php codeigniter cpanel