{extend name="light/public" /} {block name="title"}网站重定向{/block} {block name="content"}
{volist name="RedirectList" id="list"} {/volist}
重定向类型 重定向方式 保留URI参数 状态 重定向地址 操作
{$list.redirectdomain?$list.redirectdomain:$list.redirectpath} {$list.redirecttype} {$list.holdpath?'开启':'关闭'} {$list.type?'运行中':'已暂停'} {$list.tourl} 编辑 | 删除

添加重定向

  • 重定向类型:表示访问选择的“域名”或输入的“路径”时将会重定向到指定URL
  • 目标URL:可以填写你需要重定向到的站点,目标URL必须为可正常访问的URL,否则将返回错误
  • 重定向方式:使用301表示永久重定向,使用302表示临时重定向
  • 保留URI参数:表示重定向后访问的URL是否带有子路径或参数如设置访问http://b.com 重定向到http://a.com
  • 保留URI参数: http://b.com/1.html ---> http://a.com/1.html
  • 不保留URI参数:http://b.com/1.html ---> http://a.com
{/block} {block name="script"} {/block}