我想知道是否有人知道为什么在将我的CodeIgniter 3.1.2博客上传到我的Godaddy托管服务器时出现以下错误:
未指定输入文件。
该博客在localhost / blog本地工作,但在mysite.com/blog
不起作用我的配置如下所示:
$config['base_url'] = 'http://mysite/blog';
$config['index_page'] = 'index.php';
$config['uri_protocol'] = 'PATH_INFO';
和我的'application'目录中的htaccess文件如下所示:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /mysite/
RewriteEngine On
RewriteBase /blog/
#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]
#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
#This last condition enables access to the images and css folders, and the robots.txt file
#Submitted by Michael Radlmaier (mradlmaier)
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
答案 0 :(得分:0)
尝试在根应用程序目录中使用此htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,NC,L]
错误必须用更多细节来解释,如果apache,codeigniter或PHP抛出该错误,我现在不知道。