看板 PHP 關於我們 聯絡資訊
不好意思 測試了很久 還是跑不出來 開啟mod_rewrite的步驟確定完成 httpd.conf裡 #LoadModule rewrite_module modules/mod_rewrite.so --- 把#拿掉 把 AllowOverride None 改成 AllowOverride All 在根目錄底下建立 .htaccess (我丟在htdocs裡) windows底下不允許建立沒有檔名的檔案 所以得用dos (ren test.txt .htaccess) 此時echo phpinfo() 也確定mod_rewrite module有載入 但是怎樣都還是抓不到...orz 我的.htaccess裡的內容 RewriteEngine on RewriteBase / RewriteRule ^([A-Za-z0-9-]+)?/$ test.php?t=$1 [L] 請問有辦法測試是哪裡出了問題嗎!? 順便提供 mod_rewrite的cheat sheet http://www.ilovejackdaniels.com/mod_rewrite_cheat_sheet.png
這個blog還有很多其他的 很方便...XD" http://www.ilovejackdaniels.com/cheat-sheets/ 最後感激回答... -- ◢◣ ◢◣◥████ ◢███◣ ████ ███▉█ ◢█ ◣◢ ██ ███ ◥█ ███▉█ ◢▉█ ◢██ ███ ◢██ ◢██ ███ ◥██◤ █▇▇▇◤ █▉█ █▇▇ █▇ ▉▇▇ █▉█ ██ ▉▉█▏▏◢█ ██▇◣ █▇█ ▇▇█ ██ ███ █▇█▎██ █▉▉█▏▏ rushcat -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.119.199.250 ※ 編輯: rushcat 來自: 140.119.199.250 (12/08 21:03)