[請益] apache mod_rewrite

看板PHP作者時間14年前 (2009/09/25 14:44), 編輯推噓2(2010)
留言12則, 6人參與, 最新討論串1/1
我最近在設定apache mod_rewrite 我就查了google真的很多教學 我也乖乖的按照上面的步驟執行了 但是我只能執行首頁 我不知道是我放的路徑有問題還是??? C:\AppServ\www 下放 System 還有.htaccess等等的檔案 請教教我謝謝! .htaccess的內容!!! RewriteEngine on RewriteBase / RewriteCond $1 !^(index\.php|images|includes) RewriteRule ^(.*)$ index.php/$1 [L,QSA] -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.229.196.15

09/25 17:07, , 1F
錯誤訊息?
09/25 17:07, 1F

09/25 17:11, , 2F
檢查一下access.log和error.log吧
09/25 17:11, 2F

09/25 17:12, , 3F
另外看一下你httpd.conf的Options權限有沒有設好
09/25 17:12, 3F

09/26 13:55, , 4F
Options我也設定好了!
09/26 13:55, 4F

09/26 13:55, , 5F
錯誤跑出來是Starting thread to listen on port 80.
09/26 13:55, 5F

09/26 13:56, , 6F
還是只能跑出首頁其他都跑出
09/26 13:56, 6F

09/26 13:57, , 7F
404 Page Not Found
09/26 13:57, 7F

09/26 14:30, , 8F
你的正規式沒寫好嗎?!
09/26 14:30, 8F

09/26 14:43, , 9F
正規式?
09/26 14:43, 9F

09/26 19:05, , 10F
rewrite 用的是正規式取代
09/26 19:05, 10F

09/26 21:19, , 11F
要不要貼出你的 .htaccess 內容?(咦?這不是php版
09/26 21:19, 11F
※ 編輯: shinyan7671 來自: 61.229.201.196 (09/27 00:15)

09/28 10:38, , 12F
AllowOverride?
09/28 10:38, 12F
文章代碼(AID): #1Al6Q-DO (PHP)