09 Şubat 2018 17:51

Muslu Y.

Htaccess

htaccess dosyası ile https ve www yönlendirme.

Anasayfa

Htaccess

htaccess dosyası ile https ve www yönlendirme....

dummy

Web sitenizi 301 yönlendirme ile en son SSL sertifikalı adrese ve ekstra olarak www ekleterek açmak için aşağıdaki kodları domaine ait root klasöründeki htaccess dosyasını güncelleyebilirsiniz. 3 aşamayı da eklerseniz en son https://www.alanadi.uzanti şeklinde açılır.

# http://www --> https://www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# http:// --> https://
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# https:// --> https://www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Makdos Bilişim Teknolojileri 2015 - 2025