Re: [請益]CodeIgniter 開啟mod_rewrite失敗
※ 引述《tkdmaf (皮皮快跑)》之銘言:
: ※ 引述《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]
感謝,剛剛測試確認是apache資料夾權限設定的問題
把Options MultiViews
改回一開始的Options Indexes FollowSymLinks就好了
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.232.112.210
※ 文章網址: https://www.ptt.cc/bbs/PHP/M.1468654181.A.0D8.html
推
07/17 15:22, , 1F
07/17 15:22, 1F
→
07/17 15:22, , 2F
07/17 15:22, 2F
→
07/17 15:23, , 3F
07/17 15:23, 3F
→
07/21 20:00, , 4F
07/21 20:00, 4F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):
PHP 近期熱門文章
PTT數位生活區 即時熱門文章