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]
精彩评论