問題:
按照官方教安裝了框架,打開首頁沒問題,可是安裝教程路由規則打開 "http://127.0.0.1/hello/2" 時,
卻報錯誤 "No input file specified."
解決方案(2選一):
1.修改 public/.htaccess文件為:
<IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] </IfModule>
2. PHP版本5.6以上都會出現這個問題 把php版本改為5.5就OK