0
所以我想重定向:重寫URL重定向主機
first.com
到second.com
first.com/something
到second.com/redir.php?q=something
,所以我做
RewriteCond %{HTTP_HOST} ^.*first.com$
RewriteRule ^(.*)$ http://second.com/redir.php?q=$1 [R,L]
但其唯一的工作1,它發送到second.com/redir.php?q=
感謝,它的工作1,而不是2,它給沒有找到,請求的URL的index.php在此服務器上找到。 – ariel
好吧,從來沒有..它的工作..有一個#wordpress塊,我只是把它移到 – ariel
以上注意這個規則將不得不在問題中給出的。 –