Re: [請益]CodeIgniter 開啟mod_rewrite失敗

作者: tkdmaf (皮皮快跑)   2016-07-16 00:33:20
※ 引述《arthas1107 (az)》之銘言:
: 已爬文但仍然無法解決,只好再發一篇請大家幫忙
: 環境
: RewriteEngine On
: RewriteBase /test
: RewriteCond %{REQUEST_FILENAME} !-f
: RewriteCond %{REQUEST_FILENAME} !-d
: RewriteRule ^(.*)$ index.php/$1 [L]
: 網路上查到的做法大都試過了,但是仍出現錯誤訊息
: Forbidden
: You don't have permission to access /test/index.php on this server.
: 麻煩大家看一下我有哪邊做錯了,感謝
我給你我的.htaccess的內容你直接整個貼上去試試看吧!
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|robots\.txt|$)
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Links booklink

Contact Us: admin [ a t ] ucptt.com