IIS: <rule name="已导入的规则 1-1" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^maijiaxinyu.com" /> </conditions> <action type="Redirect" url="http://www.maijiaxinyu.com/{R:1}" redirectType="Permanent" /> </rule>
Apache :
RewriteEngine On
RewriteCond %{HTTP_HOST} ^ffff.com [NC]
RewriteRule ^(.*)$ http://www.ffff.com/$1 [L,R=301]