这是这个问题的后续:Rewrite URL - how to get the hostname and the path?mod_rewrite的重写规则不工作
我得到这个重写规则:
RewriteEngine On
RewriteRule ^(http://[-A-Za-z0-9+&@#/%=~_|!:,.;]*)/([-A-Za-z0-9+&@#/%=~_|!:,.;]*)\?([A-Za-z0-9+&@#/%=~_|!:,.;]*)$ http://http://www.xmldomain.com/bla/$2?$3&rtype=xslt&xsl=$1/$2.xsl
这似乎是正确的,正是我需要的。但它在我的服务器上不起作用。我收到一个404页面未找到错误。
mod_rewrite的启用,如下面的简单规则是工作的罚款:
RewriteEngine On
RewriteRule ^page/([^/\.]+)/?$ index.php?page=$1 [L]
你能帮忙吗?
谢谢
ServerFault问题,大概。 – 2010-05-21 09:44:48
你尝试了什么URI? – Gumbo 2010-05-21 11:43:34