我没有太多的编程知识,所以我需要一些帮助。我想重定向301 url/viewforum。php?F =19到另一页。我要在viewform。php中实现。我使用以下代码
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.example.com/");
exit();
?>
但是它重定向/viewform.php中的所有内容但我只想重定向/viewform.php?19 f =
<?php
if($_GET['f']==19)
{
//header("HTTP/1.1 301 Moved Permanently"); no need
header("Location: http://www.example.com/");
exit();
}
?>
希望对大家有所帮助