檢查apache的錯誤日志:
C:/wamp/www/ci/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://127.0.0.1/
發現是apache的mod_rewrite子產品沒有啟動。
啟動方法:
在apache檔案夾下的httpd.conf中找到LoadModule rewrite_module modules/mod_rewrite.so這一行,把它前面的‘#‘删掉。如果沒找到這一行,直接拷貝過去即可。
重新開機wamp服務,發現ci的界面可以顯示了。