Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] web.config实现301跳转后 ,静态变动态

[复制链接]
黑月铁骑 发表于 2016-9-16 17:20:43 | 显示全部楼层 |阅读模式
web.config里加上代码<rule name="301 3" stopProcessing="true">
               <match url="^(.*)$"/>
               <conditions logicalGrouping="MatchAny">
               <add input="{HTTP_HOST}" pattern="^www.52wzlt.com$" />
               <add input="{HTTP_HOST}" pattern="^52wzlt.com$" />
               <add input="{HTTP_HOST}" pattern="^wuyouwu.com$" />
               </conditions>
               <action type="Redirect" redirectType="Permanent" url="http://www.wuyouwu.com/{R:0}" />
              </rule>
后实现了301跳转,但是全部跳转到动态连接上,比如wuyouwu.com/forum-2-1.html,打开变成http://www.wuyouwu.com/forum.php?mod=forumdisplay&fid=2&page=1


请问如何设置才能打开变成http://www.wuyouwu.com/forum-2-1.html这样的静态链接
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-2-24 09:24 , Processed in 0.020270 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表