Mantıklı aslında da nerden bulucaz o kodu
Site adresi kismini degistirmeyi unutmayin

birde permalinkleri postname.html yapmayi
<?php
ob_start();
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
if ($actual_link == "http://siteadresi.com/"){
}else {
$yeniYazi = substr($actual_link,-1,1);
if ($yeniYazi == "/"){
$yeniYazi2 = substr($actual_link,0,-1);
$yeniSeo = ".html";
$gitgogo = $yeniYazi2.$yeniSeo;
header ("Location:$gitgogo");
}
ob_end_flush();
}
?>