fbpx
Muhteşem İndirim Kampanyası
  • 23 Saat
  • 59 Dakika
  • 32 Saniye

Tüm Hosting Planlarında %80'e varan indirim

gift box gift box circle circle not found not found gift box dots shape
not found
  • 30 Gün
  • 23 Saat
  • 59 Dakika
  • 32 Saniye
Hemen Faydalan!
Fiziksel Sunucu Aylık 5.000 TL

2.500 TL/Ay

Paketlere Bak
WordPress Hosting Aylık 39.99 TL

19.99 TL/Ay

Paketlere Bak
Bulut Sunucu Aylık 199.99 TL

99.99 TL/Ay

Paketlere Bak
Sanal Sunucu Aylık 189.99 TL

89.99 TL/Ay

Paketlere Bak

Contact Info

+90 (850) 885 0656

[email protected]

Apache ve Nginx için HTTP’den HTTPS’e Güvenli bir şekilde yönlendirme
Category
Linux
Posted on
Eylül 14, 2022

Apache ve Nginx için HTTP’den HTTPS’e Güvenli bir şekilde yönlendirme

Merhabalar;

Bugün makalemizde ssl kullanmış olduğumuz siteler için eksiksiz ve güvenli bir şekilde http’den https’e 301 yönlendirmesi yapacağız.

Apache ve litespeed sunucular için

 

.htaccess dosyasına aşağıdaki kodları eklemeniz durumunda web sitemiz http’den https’e güvenli bir şekilde 301 atmış olacağız.

 

RewriteEngine On
#sunucucozumleri.com ssl kullanıcıları için 301 yönlendirmesi
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Nginx Sunucular İçin

server {
    listen      80;
    server_name www.sunucucozumleri.com;
    rewrite     ^   https://$server_name$request_uri? permanent;
}

Bol trafikler dileriz.

Share this Post
0 0 votes
Article Rating
Subscribe
Bildir
guest
0 Yorum
Inline Feedbacks
View all comments
%d blogcu bunu beğendi: