Files
2024-10-05 02:47:43 +03:00

10 lines
290 B
ApacheConf

# Tüm trafikte HTTPS'ye yönlendirme
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [L]
ErrorDocument 404 /404.html