当前位置:首页>站长学院>AspCms教程

aspcms虚拟主机上怎么设置全站301重定向

来源:本站 发布时间:2021-01-13热度:1241 ℃

aspcms虚拟主机上怎么设置全站301重定向

问题:今天遇到一个aspcms网站,阿里云虚拟主机,无法实现全站301,该如何设置?阿里云虚拟主机本身做301重定向就很鸡肋。先是度娘了一遍,有说改AspCms_Config文件的,有说改index.asp的,总之不清晰不明了。这里提供下规则文件送给有需要的朋友


方法一:

<rewrite>
<rules>
<rule name="WWW Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^shal88.com$" />
</conditions>
<action type="Redirect" url="http://www.shal88.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>


方法二:

<rewrite>
<rules>
<rule name="WWW Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^shal88.com$" />
</conditions>
<action type="Redirect" url="https://www.shal88.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>

文件提供者:晨星傲月https://www.xundang.com/


转载请注明来源网址:https://abcmuban.com/aspcmsjc/115.html

如果你的问题还没有解决,点击PBootCMS建站交流群加入交流群一起学习交流。支持与鼓励站长,请扫码赞赏

  • 微信支付

    微信扫一扫

  • 支付宝支付

    支付宝扫一扫

推荐模板
交流学习

加入VIP即可下载全部模板;2天更新1套模板

年VIP:199元(金牌)

终身VIP:299元(钻石)

  • QQ号

    Q:2935517386

  • 添加微信客服

    微信客服

  • QQ号

    Q群:817597747

热门标签
 
Q:2935517386