没有输入文件specified.godaddy [英] No input file specified.godaddy
本文介绍了没有输入文件specified.godaddy的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用godaddy delux linus服务器托管计划,并安装了codeigniter。
i am using godaddy delux linus server hosting plan and have installed codeigniter.
当我试图访问我的域
ex- abc.com工作正常
when i am trying to access my domain ex- abc.com its working fine
但是当我试图打开它
ex- abc.com/index.php/controller
或abc.com/controller
它给我一个错误没有指定输入文件
but when i am trying to open it ex- abc.com/index.php/controller or abc.com/controller it giving me an error No input file specified
我删除了我的.htaccess文件比它did not工作
i removed my .htaccess file than also it didnt worked
比我放htacces下面的代码,但也有同样的错误
than i put htacces with the following code but than also same error
<IfModule mod_rewrite.c>
# Make sure directory listing is disabled
Options +FollowSymLinks -Indexes
RewriteEngine on
# NOTICE: If you get a 404 play with combinations of the following commented out lines
#AllowOverride All
#RewriteBase /wherever/pyro/is
# Restrict your site to only one domain
#RewriteCond %{HTTP_HOST} !^example\.com$
#RewriteRule ^(.*)$ http://example.com/$1 [L]
# Keep people out of codeigniter directory and Git/Mercurial data
RedirectMatch 403 ^/(system\/pyrocms\/cache|system\/codeigniter|\.git|\.hg).*$
# Send request via index.php (again, not if its a real file or folder)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<IfModule mod_php5.c>
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_php5.c>
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
</IfModule>
我的配置设置
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
// i have tried url_protocol with AUTO also
$config['base_url']= 'http://abc.com/';
推荐答案
bad= RewriteRule ^(.*)$ index.php/$1
good= RewriteRule ^(.*)$ index.php?/$1
这篇关于没有输入文件specified.godaddy的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文