RewriteEngine On

# 1. HTTPS ve WWW Zorunlu Kıl
RewriteCond %{HTTP_HOST} !^www\. [NC,OR]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.mataramasuko.com/$1 [L,R=301]

# 2. Dizin Listelemeyi Kapat
Options -Indexes

# 3. .php Uzantısını Gizle
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]