看板 Web_Design 關於我們 聯絡資訊
※ 引述《andrew43 (Myrmarachne)》之銘言: : 我的 .htaccess 如下: : ### : Options FollowSymLinks : RewriteEngine On : RewriteRule ^(.*)/index.html$ http://localhost/index.php?page=$1 [NC,L] : ### : 如此確實可以以 http://localhost/x/index.html (短網址) : 得到 http://localhost/index.php?page=x (長網址) : 但是每次在瀏覽器上輸入短網址, : 網址列也就直接跳到長網址,並輸出長網址的內容了。 : 而我希望的是若輸入短網址,可以得到長網址的內容,但網址列仍顯示短網址。 : 請問我該往什麼方向或設定來檢查? : Server version: Apache/1.3.41 (Darwin) 修改一下你的 RewriteRule 改成 RewriteRule ^(.*)/index.html$ /index.php?page=$1 試看看 這樣他就直接執行後面這個程式了,而不是使用轉頁的方式 EX: http://34c.cc/BBS_0 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.59.230.111