看板 PHP 關於我們 聯絡資訊
把問題簡化了一下 在/home/user/public_html/裡面 有一個test資料夾 test資料夾裡面有一個資料夾webroot跟一個.htaccess webroot資料夾裡面有一個index.php 裡面只有放一個phpinfo.php函式 我想要網址上打localhost/~user/ 會直接連到webroot資料夾裡面(不用指定到index.php) 以下是我的.htaccess的內容 --- <IfModule mod_rewrite.c> RewriteEngine on RewriteBase /~user/test/ RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule> 很奇怪的是,我只要把第四行拿掉就可以work 有沒有人可以指導我 第四行到底錯在哪邊? -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.250.248.62