ssl https için .htacces nasıl olmalı?
Bu sitede ssl'ye geçince kullanılabilecek 3 değişik htacces kodu var. iyi de hangisi doğru? sitemde seo kurulu. alttakilerden hangisini kullanmalıyım?
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
# BEGIN WpFastestCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} =on
RewriteCond %{HTTP_HOST} ^www.siteadi.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} !^on
RewriteRule (.*) http://www.siteadi.NET/$1 [R=301,L]
RewriteCond %{HTTPS} ^on
RewriteRule (.*) https://www.siteadi.NET/$1 [R=301,L]