1
如果%{REQUEST_URI}以%{HTTP_HOST}开头,如何重写?modRewrite自定义重定向
即http://example.com/example.com_custom_text - >http://example.com/index.php?q=special&info=example.com_custom_text
的%用途{HTTP_HOST}是重要由于普遍性。
不起作用:
RewriteCond %{REQUEST_URI} ^%{HTTP_HOST}
RewriteRule ^(.*)$ index.php?q=special&info=$1 [L,QSA]
非常感谢匹配,你真棒! – aks 2012-08-09 07:21:46