开发者

ISAPI_Rewrite Rule for version 2

开发者 https://www.devze.com 2022-12-10 07:14 出处:网络
How can I write the following rule in older version of ISAPI_rewrite ? RewriteCond %{HTTP_HOST} ^fit-reisen.de$ [NC]

How can I write the following rule in older version of ISAPI_rewrite ?

RewriteCond %{HTTP_HOST} ^fit-reisen.de$ [NC]
RewriteRule ^(.*)$ http://www.fitreisen.de/$1 [R=301,L]

I tried to write like

RewriteCond Host: (?!^www.fit-reisen.de)(.+)
RewriteRule /(.*) http\://www.fitreisen.de/$2开发者_Go百科 [I,RP]

but i did not work.


I don’t know ISAPI_rewrite very well. But try this:

RewriteCond Host: ^fit-reisen\.de$
RewriteRule ^(.*)$ http\://www.fitreisen.de$1 [I,RP,L]


The syntax for ISAPI_Rewrite2 should be as follows:

RewriteCond Host: fit-reisen\.de
RewriteRule (.*) http\://www.fitreisen.de$1 [RP]
0

精彩评论

暂无评论...
验证码 换一张
取 消