Merhaba,

http://www.mynet.com   ->    https://mynet.com
http://mynet.com           ->    https://mynet.com
https://www.mynet.com  ->    https://mynet.com
http://mynet.com/a.html ->    https://mynet.com/a.html
https://www.mynet.com/a.html -> https://mynet.com/a.html
Yani özet olarak;

- Sitem http ile hiç açılmasın
- Klasör ve dosyaları http üzerinden değilde https üzerinden açsın (www olmadan açmalı).

Bunun bir yöntemi varmı ?



RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
Bu .htaccess söylediklerimin hepsini yapıyor sadece bir tanesi hariç.

http://mynet.com ve http://mynet.com/a.html olarak girilince https'e yönlendirmiyor.

Yukarıdaki koda ek olarak;

RewriteCond %{HTTP_HOST} !^www\.(.+)$ [NC]
yapıyorum yine olmuyor ?





ÇÖZÜLDÜ

Domain cloudflarede olduğundan dolayı diğer yaptığım işlemler sınırsız döngüye giriyordu.

RewriteEngine On 
RewriteCond %{HTTP:X-Forwarded-Proto} !https 
RewriteRule .* https://mynet.com%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

bu .htaccess ile tüm girişleri https://mynet.com olarak sağlayabildim.