解决Godaddy 使用 YII 出现No input file specified 的错误
在根目录新建一个文件 : php5.ini
文件内容:cgi.fix_pathinfo=1
并且修改 .htaccess 为:主要是最后一行要注意
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
[b]# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . /index.php[/b]
实践证明管用
在根目录新建一个文件 : php5.ini
文件内容:cgi.fix_pathinfo=1
并且修改 .htaccess 为:主要是最后一行要注意
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
[b]# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
RewriteRule . /index.php[/b]
实践证明管用