PostNuke

Flexible Content Management System

News

Handling old search engine links

Contributed by on May 13, 2002 - 10:37 PM

The solution I found was to create a file 'article.php' containing the code to redirect the user to the correct page. The code looks like this:


<code>


<?php


$newloc = "";


if( isset($sid) ) {


$newloc = "modules.php?op=modload&name=News&file=article&sid=".$sid;


}


else {


$newloc = "index.php";


}


header( "Location: " . $newloc );


?>


</code>




Hope that helps some of you with the same problem.




cheers


jalal




1605
Footnote: 1