Merhaba,

.htaccess:
RewriteRule ^hizmet-detay/([0-9a-zA-Z-_]+)-([0-9]+)$ hizmet-detay.php?sef=$1&hizmet_id=$2 [L,QSA]

hizmet_detay.php:
<?php
include 'include/header.php'; 

$sef = $_GET['sef'];
$hizmet_id = $_GET['hizmet_id'];

$sorgu = $db->prepare("SELECT * FROM hizmetlerimiz WHERE hizmet_id = :id");
$sorgu->execute(['id' => $hizmet_id]);
$hizmtcek = $sorgu->fetch(PDO::FETCH_ASSOC);


echo "<title>" . $hizmtcek['hizmet_baslik'] . " | Kaya Production</title>";
?>
<section class="page-title" style="background-image:url(<?php echo $ayarcek["site_url"]; ?>uploads/<?php echo $hizmtcek["hizmet_resim"]; ?>)">
    <div class="auto-container">
        <h2><?php echo $hizmtcek["hizmet_baslik"]; ?></h2>
        <ul class="page-breadcrumb">
            <li><a href="<?php echo $ayarcek["site_url"]; ?>">Ana Sayfa</a></li>
            <li><?php echo $hizmtcek["hizmet_baslik"]; ?></li>
        </ul>
    </div>
</section>
header.php:
    <?php if(isset($hizmtcek['hizmet_baslik'])): ?>
        <title><?php echo $hizmtcek['hizmet_baslik']; ?> | Kaya Production</title>


<?php else: ?> ve <?php endif; ?> olarak kapatmayı unutmayın