网站301重定向代码大全

 时间:2025-01-05 12:34:44

1、2003系统保存为httpd.ini上传至根目录,2008系统保存为web.config上传至根目录

2、域名huakungzs.com做301重定向至www.huakungzs.com举例:

3、windows2003系统:[ISAPI_Rewrite]RewriteCond Host: ^(?:www\.)?huakungzs\.com$RewriteRule ^/(.*)$ http://www\.huakungzs\.com/$1 [L,RP]

4、windows2008系统:<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><clear /><rule name="sudu_rewritefunc_unifieddomainname" enabled="true" patternSyntax="ECMAScript" stopProcessing="false"><match url="(.*)" ignoreCase="true" negate="false" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{HTTP_HOST}" matchType="Pattern" pattern="^huakungzs.com$" ignoreCase="true" negate="true" /></conditions><action type="Redirect" url="http://www.huakungzs.com/{R:1}" appendQueryString="true" redirectType="Permanent" /></rule></rules></rewrite></system.webServer></configuration>

  • HBuiled集成使用git功能
  • 海尔KMR(d)-140E/(H)空调使用说明书:[2]
  • CentOS 7 通过 yum 安装 nodejs 和 npm
  • 热门搜索
    凤凰山旅游 做双眼皮哪里好 doc怎么打开 四川哪里好玩 路由器密码设置 香港 旅游 春天在哪里 同济大学在哪里 不认识的字怎么打 个人工作经历怎么写