我需要複製mod_alias
的功能,我不能直接使用它,因爲我在共享主機上,而且別名語句在.htaccess中不起作用。這個mod_rewrite語句有什麼問題?
我想達到什麼是本質
Alias /manual /www/customer/some_other_dir/manual
我想mod_rewrite的:
RewriteRule ^/manual/(.*) /www/customer/some_other_dir/manual/%1?%{QUERY_STRING} [L]
這永遠不會匹配任何調用www.example.com/manual
。
爲什麼不呢?我究竟做錯了什麼?
@Pekka - 把這個生活之前檢查我的修訂! :P – 2010-02-02 22:57:47