建议兼容一下旧版链接
本帖最后由 mymy365 于 2011-7-31 20:55 编辑这个不难做到,或者自己目录下面写个.htaccess做个转向,或者更简单的,建个forum文件夹,然后在下面建立一个viewthread.php和forumdisplay.php,比如viewthread.php里面只需要写<?
$tid = intval($_REQUEST['tid']);
if ($tid){
$url = "http://www.dolc.de/forum.php?mod=viewthread&tid=".$tid;
}else{
$url = "http://www.dolc.de/forum.php";
}
header($url);
?>即可,记住文件保存格式得是UTF-8 无BOM,不然无法转向。
forumdisplay.php的话把tid改成fid,mod改成forumdisplay就OK了
多谢提醒!<?php
error_reporting(E_ERROR);
ob_start();
header("HTTP/1.1 301 Moved Permanently");
$url = 'forum.php?';
if(is_numeric($_GET['tid'])) {
$url .= 'mod=viewthread&tid='.$_GET['tid'];
if(is_numeric($_GET['page'])) {
$url .= '&page='.$_GET['page'];
}
}
header("location: ../$url");
?>
页:
[1]