Update and rename .htaccess.txt to .htaccess

This commit is contained in:
FURK4NGG
2024-10-05 02:37:22 +03:00
committed by GitHub
parent 7dfed1847a
commit 9e4ea16714
+9
View File
@@ -0,0 +1,9 @@
# 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 /not_found_page.html