1. htaccess
RewriteEngine on

RewriteCond %{HTTP_HOST} ^localhost [NC]
RewriteRule ^(.*)$ http://localhost/$1 [L,R=301,NC]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

RewriteRule ^([^/_.]+)$ /$1/ [L,R=301]

RewriteRule ^([^/_.]+)/$ detay.php?url=$1 [L,QSA]
RewriteRule ^sayfa/([^/_.]+)$ index.php?page=$1 [L,QSA]

ErrorDocument 404 http://localhost/

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST On
</IfModule>
2. htaccess
RewriteEngine on

RewriteCond %{HTTP_HOST} ^localhost [NC]
RewriteRule ^(.*)$ http://localhost/$1 [L,R=301,NC]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

RewriteRule ^hizmet/([^/_.]+)$ hizmet-detay.php?url=$1 [L,QSA]
RewriteRule ^kurumsal/([^/_.]+)$ kurumsal-detay.php?url=$1 [L,QSA]
RewriteRule ^referans/([^/_.]+)$ referans-detay.php?url=$1 [L,QSA]
RewriteRule ^([^/_.]+)$ /$1/ [L,R=301]
RewriteRule ^([a-zA-Z0-9_-]+)/sayfa/([0-9]+)$ kategori-detay.php?category_url=$1&page=$2 [L,NC]

ErrorDocument 404 http://localhost/

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST On
</IfModule>
Dener misiniz