<?
$redirto = str_ireplace("details.phtm","details.html",$REQUEST_URI);
header ("location: $redirto");
exit;
?>