RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.safayasar\.com
RewriteRule (.*) http://www.safayasar.com/ $1 [R=301,L]
www+https yönlendirme sağlar
Konu: Siteme Ssl aldım
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} !^www\.safayasar\.com
RewriteRule (.*) http://www.safayasar.com/ $1 [R=301,L]