htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^([a-zA-Z0-9-_]+).html?(.*)$ sayfa.php?id=$1&fastphp=%1 [L]php dosya
<?php
if(isset($_GET['fastphp']) && !empty($_GET['fastphp']) && file_exists(@$_GET['fastphp'].'.html'))
{
/* kuralimizda eğer ek qs gelmişse boş değilse ve anadizinde qs.html mevcutsa o sayfayi yazdir*/
echo @file_get_contents($_GET['fastphp'].'.html');
}
else
{
/* olumsuzsa normal içerigi yazdir */
echo "Normal sayfa içeriği";
}
?>