看板 PHP 關於我們 聯絡資訊
※ 引述《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
kyleJ: 我記得Indexes是沒有首頁時顯示整個資料夾的內容吧 沒特別 07/17 15:22
kyleJ: 需求時我都把他拿掉 重寫網址也不用那個選項 (雖然CI怕開 07/17 15:22
kyleJ: 發者沒關掉 也放滿了index.html 07/17 15:23
arthas1107: 嗯…Indexes可以拿掉,貼太快沒注意到 07/21 20:00