這裏就是我想要做:爲什麼RewriteBase不能正常工作?
- 域名thinkingmonkey.me
- 域有127.0.0.1作爲IP地址
- mod_alias中安裝。
我有一個名爲directories.conf
conf文件。其中我有所有有關目錄的配置。 directories.conf
包括在httpd.conf
我directories.conf
有
Alias /runs /xhprof/xhprof_html
<Directory /mysite/xhprof/xhprof_html>
Order allow,deny
Allow from all
AllowOverride All
</Directory>
在/mysite/xhprof/xhprof_html/.htaccess
。我有以下幾點:
RewriteEngine on
RewriteBase /runs
RewriteRule .* index.php
所有我試圖做的是直接/mysite/xhprof/xhprof_html/
下index.php
的任何請求。
當我要求thinkingmonkey.me/runs
沒有後斜線我得到404 not found
。
所以,我推斷RewriteBase
不起作用。
我在做什麼錯?
嘗試改用'RewriteBase:/運行/' – Cyclonecode 2012-01-15 19:56:14
@KristerAndersson不會鐵鍋 – ThinkingMonkey 2012-01-15 20:17:18
指數。 php在'/ mysite/xhprof/xhprof_html /'不是嗎? – regilero 2012-01-15 20:58:47