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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[疑问] discuz7.2的Archiver转址问题

[复制链接]
magic155384 发表于 2011-2-11 02:35:09 | 显示全部楼层 |阅读模式
我想把Archiver做301问题,就是把类似
https://discuz.dismall.com/archiver/tid-46628.html
转到
https://discuz.dismall.com/thread-46628-1-1.html

我把Archiver的index.php改成这样

<?
header("HTTP/1.1 301 Moved Permanently");
header( "Location: ../thread-{$tid}-1-1.html" );
exit();
?>

只能成功转址为thread--1-1.html,我不晓得为什么{$tid}不解析,有人知道吗
beijing200808 发表于 2011-2-11 11:07:27 | 显示全部楼层
这样做肯定不行哦,tid在index里还没有获取值吧
考虑在rewrite里添加一条这样的规则
回复

使用道具 举报

梅西2010 发表于 2011-2-11 16:14:54 | 显示全部楼层
回复

使用道具 举报

 楼主| magic155384 发表于 2011-2-11 16:33:47 | 显示全部楼层
beijing200808 发表于 2011-2-11 11:07
这样做肯定不行哦,tid在index里还没有获取值吧
考虑在rewrite里添加一条这样的规则

rewrite不是寫.htaccess使用的嗎
回复

使用道具 举报

beijing200808 发表于 2011-2-12 09:17:02 | 显示全部楼层
是的。rewrite是交给服务器来处理,不用走程序
回复

使用道具 举报

kiddbin 发表于 2011-2-12 16:09:44 | 显示全部楼层
帮你~!~!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-10-2 08:42 , Processed in 0.113282 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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