Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Kupası
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

WordPress HTTP’den HTTPS’ye Nasıl Doğru Şekilde Taşınır (Başlangıç Kılavuzu)

Editoryal Not: WPBeginner üzerindeki ortak bağlantılardan komisyon kazanıyoruz. Komisyonlar, editörlerimizin görüşlerini veya değerlendirmelerini etkilemez. Editoryal Süreç hakkında daha fazla bilgi edinin.

WordPress’i HTTP’den HTTPS’ye taşımak ve web sitenize bir SSL sertifikası yüklemek mi istiyorsunuz?

Google’ın Temmuz 2018’de Chrome tarayıcısının SSL olmayan tüm web sitelerini güvensiz olarak işaretleyeceğini duyurması nedeniyle bu konuda çok sayıda talep aldık.

Bu makalede, bir SSL sertifikası ekleyerek WordPress’i HTTP’den HTTPS’ye nasıl düzgün bir şekilde taşıyacağınızı göstereceğiz.

Moving WordPress from HTTP to HTTPS / SSL

SSL veya HTTPS’nin ne olduğu hakkında hiçbir fikriniz yoksa endişelenmeyin. Bunu da açıklayacağız.

HTTPS Nedir?

HTTPS veya Güvenli HTTP, kullanıcıların tarayıcısı ile sunucunuz arasındaki bağlantıyı güvence altına alan bir şifreleme yöntemidir. Bu, bilgisayar korsanlarının bağlantıyı gizlice dinlemesini zorlaştırır.

Her gün kişisel bilgilerimizi farklı web siteleriyle paylaşıyoruz, ister bir satın alma işlemi yapıyor ister sadece giriş yapıyor olalım.

Veri aktarımını korumak için güvenli bir bağlantı oluşturulması gerekir.

İşte o zaman SSL ve HTTPS devreye girer.

Her siteye tanımlama amacıyla benzersiz bir SSL sertifikası verilir. Bir sunucu HTTPS kullanıyormuş gibi davranıyorsa ve sertifikası eşleşmiyorsa, çoğu modern tarayıcı kullanıcıyı web sitesine bağlanmaması konusunda uyaracaktır.

Connection not private error in Google Chrome

Şimdi muhtemelen WordPress sitemi neden HTTP’den HTTPS’ye taşımam gerektiğini merak ediyorsunuzdur, özellikle de herhangi bir ödeme almayan basit bir blog veya küçük işletme web sites iyse.

HTTPS ve SSL’e Neden İhtiyacınız Var?

2018 yılında Google, web sitesi sahiplerini HTTP’den HTTPS’ye geçmeye teşvik ederek genel web güvenliğini artırmaya yönelik bir plan açıkladı. Bu planın bir parçası olarak, popüler Chrome web tarayıcısı SSL sertifikası olmayan tüm web sitelerini “Güvenli Değil” olarak işaretleyecektir.

Connection not secure

Google ayrıca SSL’li web sitelerinin SEO faydaları da göreceğini ve güvensiz web sitelerine göre daha yüksek arama sıralaması alacağını söyledi. O zamandan beri çok sayıda web sitesi HTTP’den HTTPS’ye geçti.

Duyurunun ardından Google, Chrome’da “Güvenli Değil” uyarısını sunmaya başladı. Örneğin, birisi gizli pencereyi kullanarak bir HTTP web sitesini ziyaret ederse, Güvenli Değil olarak işaretlenecektir. Bir kişi normal modda bir HTTP web sitesini ziyaret eder ve bir iletişim formu veya başka bir form doldurmaya çalışırsa, web sitesi güvensiz olarak işaretlenecektir.

Okuyucularınız ve müşterileriniz bu bildirimi gördüklerinde, işletmeniz hakkında kötü bir izlenim edinirler.

Bu nedenle tüm web sitelerinin HTTP’den HTTPS’ye geçmesi ve hemen SSL yüklemesi gerekir.

E-ticaret web sitenizde çevrimiçi ödeme kabul etmek istiyorsanız SSL’e ihtiyacınız olduğundan bahsetmiyorum bile.

Stripe, PayPal Pro, Authorize.net gibi çoğu ödeme şirketi, ödemeleri kabul etmeden önce güvenli bir bağlantı gerektirecektir.

WPBeginner, OptinMonster, WPForms ve MonsterInsights dahil olmak üzere web sitelerimiz için SSL kullanıyoruz.

WordPress Sitesinde HTTPS/SSL Kullanmak için Gerekenler

WordPress’te SSL kullanmak için gerekenler çok yüksek değildir. Tek yapmanız gereken bir SSL sertifikası satın almaktır ve buna zaten ücretsiz olarak sahip olabilirsiniz.

En iyi WordPress hosting şirketleri tüm kullanıcıları için ücretsiz SSL sertifikaları sunuyor:

Daha fazla ayrıntı için WordPress web siteniz için nasıl ücretsiz SSL sertifikası alacağınıza ilişkin kılavuzumuza bakın.

Hosting şirketiniz ücretsiz bir SSL sertifikası sunmuyorsa, bir SSL sertifikası satın almanız gerekir.

Hem normal hem de joker SSL sertifikaları için en iyi SSL anlaşmasını sundukları için Domain.com ‘u kullanmanızı öneririz.

Onlardan bir SSL sertifikası satın alarak, web siteniz için bir TrustLogo site mührü de elde edersiniz ve her SSL sertifikası minimum 10.000 $ güvenlik garantisi ile birlikte gelir.

Bir SSL sertifikası satın aldıktan sonra, barındırma sağlayıcınızdan bunu sizin için yüklemesini istemeniz gerekecektir.

WordPress’i SSL ve HTTPS Kullanacak Şekilde Ayarlama

Alan adınız için bir SSL sertifikası etkinleştirdikten sonra, WordPress’i web sitenizde SSL ve HTTP protokollerini kullanacak şekilde ayarlamanız gerekecektir.

Bunu yapmak için size iki yöntem göstereceğiz ve ihtiyaçlarınıza en uygun olanı seçebilirsiniz.

Video Eğitimi

Subscribe to WPBeginner

Yazılı talimatları tercih ediyorsanız, okumaya devam edin

Yöntem 1: Bir Eklenti Kullanarak WordPress’te SSL/HTTPS Kurun

Bu yöntem daha kolaydır ve yeni başlayanlar için tavsiye edilir.

Öncelikle Really Simple SSL eklentisini yüklemeniz ve etkinleştirmeniz gerekir. Daha fazla ayrıntı için, bir WordPress eklentisinin nasıl kurulacağına ilişkin adım adım kılavuzumuza bakın.

Etkinleştirmenin ardından Ayarlar ” SSL sayfasını ziyaret etmeniz gerekir. Eklenti SSL sertifikanızı otomatik olarak algılayacak ve WordPress sitenizi HTTPS kullanacak şekilde ayarlayacaktır.

SSL enabled on a WordPress website

Eklenti, karışık içerik hataları da dahil olmak üzere her şeyi halledecektir. İşte eklentinin perde arkasında yaptıkları:

  • SSL sertifikasını kontrol edin
  • WordPress’i URL’lerde https kullanacak şekilde ayarlama
  • HTTP’den HTTPS’yeyönlendirmeleri ayarlama
  • İçeriğinizde hala güvensiz HTTP kaynaklarından yüklenen URL’leri arayın ve bunları düzeltmeye çalışın.

Not: Eklenti, çıktı tamponlama tekniğini kullanarak karışık içerik hatalarını düzeltmeye çalışır. Sayfa yüklenirken sitedeki içeriği değiştirdiği için olumsuz bir performans etkisi olabilir. Bu etki yalnızca ilk sayfa yüklemesinde görülür ve bir önbellek eklentisi kullanıyorsanız minimum düzeyde olmalıdır.

Eklenti SSL’i koruyabileceğinizi ve eklentiyi güvenli bir şekilde devre dışı bırakabileceğinizi söylese de, bu %100 doğru değildir. Eklentiyi devre dışı bırakmak karışık içerik hatalarını geri getireceğinden eklentiyi her zaman aktif bırakmanız gerekecektir. Daha fazla ayrıntı için Really Simple SSL incelememize bakın.

Yöntem 2: WordPress’te SSL/HTTPS’yi Manuel Olarak Kurun

Bu yöntem, sorunları manuel olarak gidermenizi ve WordPress dosyalarını düzenlemenizi gerektirir. Bununla birlikte, kalıcı ve daha performanslı bir çözümdür ve WPBeginner’da kullanıyoruz.

Bu yöntemi zor buluyorsanız, bir WordPress geliştiricisi kiralayabilir veya bunun yerine ilk yöntemi kullanabilirsiniz.

Bu yöntemin bir parçası olarak WordPress temasını ve kod dosyalarını düzenlemeniz gerekebilir. Bunu daha önce yapmadıysanız, WordPress’te kod parçacıklarının nasıl kopyalanıp yapıştırılacağına ilişkin kılavuzumuza bakın.

İlk olarak, Ayarlar ” Genel sayfasını ziyaret etmeniz gerekir. Buradan WordPress ve site URL adresi alanlarınızı http yerine https yazarak güncellemeniz gerekiyor.

Update WordPress URLs

Ayarlarınızı kaydetmek için ‘Değişiklikleri kaydet’ düğmesine tıklamayı unutmayın.

Ayarlar kaydedildikten sonra WordPress oturumunuzu kapatacak ve yeniden giriş yapmanız istenecektir.

Ardından, .htaccess dosyanıza aşağıdaki kodu ekleyerek WordPress yönlendirmelerini HTTP’den HTTPS’ye ayarlamanız gerekir:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

Eğer NGINX sunucular kullanıyorsanız, HTTP’den HTTPS’ye yönlendirmek için aşağıdaki kodu yapılandırma dosyanıza eklemeniz gerekecektir:

server {
listen 80;
server_name example.com www.example.com;
return 301 https://example.com$request_uri;
}

example.com yerine kendi alan adınızı yazmayı unutmayın.

Bu adımları izleyerek WordPress HTTPS çalışmıyor hatasını önleyeceksiniz çünkü WordPress artık tüm web sitenizi HTTPS kullanarak yükleyecektir.

WordPress yönetici alanınızda veya giriş sayfalarınızda SSL ve HTTPS’yi zorlamak istiyorsanız, wp-config.php dosyasında SSL’yi yapılandırmanız gerekir.

Aşağıdaki kodu wp-config.php dosyanızdaki “Hepsi bu kadar, düzenlemeyi durdurun!” satırının üzerine ekleyin:

define('FORCE_SSL_ADMIN', true);

Bu satır WordPress’in WordPress yönetici alanında SSL / HTTP’leri zorlamasını sağlar. WordPress çoklu site ağlarında da çalışır.

Bunu yaptığınızda, web siteniz SSL / HTTPS kullanmak için tamamen ayarlanmış olur, ancak yine de karışık içerik hatalarıyla karşılaşırsınız.

Bu hatalar, URL’lerde hala güvensiz HTTP protokolü kullanılarak yüklenen kaynaklardan (resimler, komut dosyaları veya stil sayfaları) kaynaklanır. Bu durumda, web sitenizin adres çubuğunda güvenli bir asma kilit simgesi göremezsiniz.

Not secure

Birçok modern tarayıcı güvenli olmayan komut dosyalarını ve kaynakları otomatik olarak engeller.

Tarayıcınızın adres çubuğunda bir asma kilit simgesi ancak bununla ilgili bir bildirim görebilirsiniz.

Insecure content blocked

Inspect aracını kullanarak hangi içeriğin güvensiz protokol üzerinden sunulduğunu öğrenebilirsiniz.

Karışık içerik hatası, her bir karışık içerik öğesi için ayrıntılarla birlikte konsolda bir uyarı olarak görüntülenecektir.

Mixed content errors displayed in browser console

URL’lerin çoğunun resimler, iframe’ler ve resim galerileri olduğunu, bazılarının ise WordPress eklentileriniz ve temalarınız tarafından yüklenen komut dosyaları ve stil sayfaları olduğunu fark edeceksiniz.

WordPress Veritabanındaki Karışık İçeriği Düzeltme

Hatalı URL’lerin çoğu WordPress veritabanınızda depolanan resimler, dosyalar, yerleştirmeler ve diğer veriler olacaktır. Önce bunları düzeltelim.

Veritabanında eski web sitenizin URL’sinin http ile başlayan tüm sözlerini bulmanız ve bunları https ile başlayan yeni web sitenizin URL’si ile değiştirmeniz gerekir.

Search & Replace Everything eklentisini yükleyip etkinleştirerek bunu kolayca yapabilirsiniz. Daha fazla ayrıntı için, bir WordPress eklentisinin nasıl kurulacağına ilişkin adım adım kılavuzumuza bakın.

Etkinleştirmenin ardından Araçlar ” WP Search & Replace sayfasını ziyaret etmeniz gerekir. ‘Ara’ alanının altında, web sitenizin URL’sini http ile eklemeniz gerekir. Bundan sonra, web sitenizin URL’sini ‘Değiştir’ alanının altına https ile ekleyin.

Add URLs into the search and replace fields

Bunun altında, tüm WordPress veritabanı tablolarınızı göreceksiniz. Kapsamlı bir kontrol yapmak için hepsini seçmeniz gerekir.

Select all tables in Search & Replace Everything

Ardından, eklentinin yapacağı tüm değişiklikleri görmek için ‘Arama ve Değiştirmeyi Önizle’ düğmesine tıklayın. Son olarak, ‘Tümünü Değiştir’ düğmesine tıklayın.

Click the Replace All button

Eklenti şimdi WordPress veritabanınızda http ile başlayan URL’leri arayacak ve bunları güvenli https URL’leri ile değiştirecektir. WordPress veritabanınızın boyutuna bağlı olarak bu işlem biraz zaman alabilir.

WordPress Temasında Karışık İçerik Hatalarını Düzeltme

Karışık içerik hatalarına neden olan bir diğer yaygın suçlu da WordPress temanızdır. WordPress kodlama standartlarını takip eden herhangi bir düzgün WordPress teması bu soruna neden olmaz.

İlk olarak, kaynakları ve nereden yüklendiklerini bulmak için tarayıcınızın İnceleme aracını kullanmanız gerekecektir.

Using inspect tool to find mixed content error

Bundan sonra, bunları WordPress temanızda bulmanız ve https ile değiştirmeniz gerekecektir. Bu yeni başlayanlar için biraz zor olacaktır çünkü hangi tema dosyalarının bu URL’leri içerdiğini göremeyeceksiniz.

Eklentilerden Kaynaklanan Karışık İçerik Hatalarını Düzeltme

Bazı karışık içerik kaynakları WordPress eklentileri tarafından yüklenecektir. WordPress kodlama standartlarına uyan herhangi bir WordPress eklentisi karışık içerik hatalarına neden olmaz.

WordPress eklenti dosyalarını düzenlemenizi önermiyoruz. Bunun yerine, eklenti yazarıyla iletişime geçmeli ve onlara bildirmelisiniz. Yanıt vermezlerse veya sorunu çözemezlerse, uygun bir alternatif bulmalısınız.

Not: Herhangi bir nedenle hala karışık içerik hatasıyla karşılaşıyorsanız, sorunu bir hazırlık web sitesinde çözerken veya bir geliştirici tutarken kullanıcılarınızın etkilenmemesi için geçici olarak Really Simple SSL eklentisini kullanmanızı öneririz.

HTTPS Sitenizi Google Search Console’a Gönderin

Google gibi arama motorları https ve http’yi iki farklı web sitesi olarak kabul eder. Herhangi bir SEO sorunundan kaçınmak için Google’a web sitenizin taşındığını bildirmeniz gerekecektir.

Bunu yapmak için Google Search Console hesabınıza gitmeniz ve ‘Mülk Ekle’ düğmesine tıklamanız yeterlidir.

Add property

Bu, web sitenizin yeni https adresini eklemeniz gereken bir açılır pencere getirecektir.

Site doğrulaması için iki yöntem vardır: alan adı veya URL öneki. Daha esnek olduğu için URL öneki yöntemini öneriyoruz.

Add website URL in Google Search Console

Bundan sonra, Google sizden web sitenizin sahipliğini doğrulamanızı isteyecektir.

Bunu yapmanın birkaç yolu vardır. Herhangi bir yöntemi seçtiğinizde sitenizi doğrulamak için talimatlar alacaksınız. HTML etiketi yöntemini kullanmanızı öneririz.

HTML tag method to verify your site

Şimdi WordPress web sitenizin head bölümüne eklemeniz gereken bir HTML kod parçacığı göreceksiniz.

All in One SEO kullanarak Search Console Doğrulama Kodu Ekleme

İlk olarak, WordPress için All in One SEO eklentisini kurun ve etkinleştirin. Daha fazla ayrıntı için WordPress eklentisi yükleme hakkındaki eğitimimize bakın.

Not: All in One SEO ‘nun deneyebileceğiniz ücretsiz bir sürümü de bulunmaktadır.

Etkinleştirmenin ardından All in One SEO ” Genel Ayarlar sayfasına gidin ve Google Search Console’a tıklayın.

Add Google Search Console verification code in All in One SEO

Bunun altına, daha önce Google Search Console web sitesinden kopyaladığınız doğrulama kodunu eklemeniz gerekir.

Ayarlarınızı kaydetmek için ‘Değişiklikleri Kaydet’ düğmesine tıklamayı unutmayın.

Ardından, Google Search Console sekmesine geri dönün ve ‘Doğrula’ düğmesine tıklayın.

Verify ownership

Siteniz doğrulandıktan sonra Google, search console raporlarınızı burada gösterecektir.

Ayrıca hem https hem de http sürümlerinin Search Console’a eklendiğinden emin olmanız gerekir.

Bu, Google’a web sitenizin https sürümünün birincil sürüm olarak ele alınmasını istediğinizi söyler. Daha önce ayarladığınız 301 yönlendirmeleriyle birlikte Google, arama sıralamalarınızı web sitenizin https sürümüne aktaracak ve büyük olasılıkla arama sıralamalarınızda iyileşmeler göreceksiniz.

Umarız bu makale WordPress’e HTTPS ve SSL eklemenize yardımcı olmuştur. WordPress sitenizi güvende tutmak için adım adım talimatlar içeren nihai WordPress güvenlik kılavuzumuzu veya WordPress için en iyi analiz çözümleri uzman seçimlerimizi de görmek isteyebilirsiniz.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Açıklama: İçeriğimiz okuyucu desteklidir. Bu, bazı bağlantılarımıza tıklarsanız komisyon kazanabileceğimiz anlamına gelir. WPBeginner'ın nasıl finanse edildiğini, neden önemli olduğunu ve nasıl destek olabileceğinizi görün. İşte editoryal sürecimiz.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Ultimate WordPress Araç Kiti

Araç setimize ÜCRETSİZ erişim sağlayın - her profesyonelin sahip olması gereken WordPress ile ilgili ürün ve kaynaklardan oluşan bir koleksiyon!

Reader Interactions

406 yorumBir Cevap Bırakın

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Kevin Bollhorst says

    Thank you for this informative article. I am looking into switching my blog to SSL. The web host provider is Bluehost and I am using the free Cloudflare CDN Service. I have one question. Will Cloudflare’s free service support Bluehost’s Free SSL certificate?

  3. Moritz Steiger says

    I followed these instructions and now it has screwed my site, nothing works. I now get the ‘White screen of death’ my host won’t help as they say it is a coding error and I am left in limbo.

  4. Chandra says

    Hi,

    Thank for you for such an detailed article on a very hot topic.

    I followed manual steps but got mixed content error. And seems because of this I’m not able to see WP login page. I tried clearing cache on dreamhost but message displayed is “Unable to connect to CloudFlare”.

    I’m using Dreamhost and Cloudflare is enabled.

    Could you please help or need more details to fix the issue? Do you also offer paid service to secure another site of my mine?

    Thank You.

  5. Richard says

    Hi,

    Just followed through the manual procedure without problems – Thanks!

    However, I’ve noticed that If I type the old http:// address into the browser for any page except for the homepage then the old http:// page loads.

    Then when I click a link to another page it goes to a https:// page is this normal?

    Does it indicate a problem with the redirect?

    • WPBeginner Support says

      Hi Richard,

      No it is not. Most likely the redirects in your .htaccess file are not working. Try copying the code and adding it to your .htaccess file again and see if this resolves the issue.

      Yönetici

      • Richard says

        Hi,

        Fixed It thanks. I’d originally inserted the Code at the end of the htaccess file. Moved It Up to before the WP section and everthing now works correctly.

        Thanks for your help and for the concise guide. I’d been putting this off for a while.

  6. Daniel says

    With regard to the last step in Google Console, on the “Change of Address” page, I am getting a “no available sites” message, but I have double-checked that my http and https versions are verified. When I click on “add it now” I’m just getting verification information. What do I do?

  7. Emily Randall says

    I just installed a LetsEncrypt cert on my website, and I’m getting a bunch of insecure content errors that shouldn’t be happening. Although the theme is using get_template_directory_uri() to load its styles and scripts, those styles and scripts are still being loaded via http, not https. Even if I hard-code the https url in the function to load the styles/scripts, they’re loaded via http.

    Do you have any idea what’s happening here? As far as I can tell, everything is set up properly, but it’s not working.

  8. skaur says

    Hi,
    I have purchase SSL and configured by my hosting. It shows https in url. when I do https under General settings in wordpress admin area, my website goes down, only homepage and after it I am not able to login the admin area too. I added the code in htaccess file too with https under settings.

    Could you help me with this?
    Thanks

  9. Lindsey Bell says

    I use Bluehost for web hosting and just set up my wordpress site with their free SSL certificate through the Bluehost page. There was a page on the Bluehost site to activate it for my WordPress site. Now, it appears that my site is already set up with the https. Do I still need to install the plug in, or is mine already taken care of? Thanks so much for the help!

  10. Farukh hussain says

    Hi,
    I was founding this issue and you just uploaded this article. Thanks alot.
    Can you please help? I did not change my primary site on search console. I added a new property with https and then created a set for all of them. Will it work fine for ranking or I need to follow your instructions only???

  11. Chris says

    I don’t understand why a redirect is still necessary once the hosting service installs the certificate for the site. I’m assuming that a WordPress site initially configured with the HTTPS protocol does not require a redirect. Is it a matter of registering a domain with or without the proper protocol?

  12. James Katt says

    The problem of buying an SSL certificate and having it installed is that you will need to also purchase a fixed IP address from your Web Host. This is an additional yearly cost on top of the yearly cost of the SSL Certificate. For each website you create you have to buy an SSL certificate and a fixed IP address. This will add up tremendously the more websites you have.

    Because of this, I prefer creating websites on hosts that Automatically give you a Free SSL certificate. These days, the ones that don’t simply want to gouge you for money.

  13. Rupam krishna Bharali says

    Can the internal configuration of SSL and HTTPS help to reduce the SSL loading time during a request? When I tested my website with SSL enabled and it took about 455 ms to load “the SSL separately”, but when I disabled the SSL total loading time decreased to 1.3s. So two question I want to ask you guys,

    1. Can I go without an SSL just because I have a Simple blog, no commercial stuff, and web payments?

    2. Can the configuration of SSL internally with the help of .htaccess file reduce the loading time of SSL?

    • WPBeginner Support says

      Hi Rupam,

      1. You can but soon Google will start warning users about websites not using HTTPs, this would affect your website’s traffic.

      2. Yes, it can. You can also try to avoid plugins to fix mixed content issues. We have noticed that often such plugins increase page load time significantly.

      Yönetici

  14. Adeshewa says

    Could someone help please, I followed the direction of the first one all my pages are secure except for one on the menu. Whenever I clicked on it as a customer it says your connection to this website isn’t encrypted.

    • Troy says

      Not sure if you got this fixed yet, but I was having the same issue. I found that using the SSL Insecure Content Fixer plugin corrected it. Worth a shot!

  15. Shyam says

    Hi wpbeginner,
    My website did not have ssl certificate. I changed the http to https now it is showing ssl not enabled. What do I do?

    • Zohaib Sadique says

      If you are working in WordPress then install the plugin named “really simple SSL” to force up your SSL. I hope you will get the idea. Thanks for reading.

  16. Erin says

    Thank you!! Finally I have my SSL certificate recognised by wordpress and I couldn’t have done it without the info provided here. So a BIG thanks for helping me out!

  17. Farrukh Ghafoor says

    I have added the code into the .htaccess file but when I refresh my page in WordPress it comes up with a “Your connection is not private” message. I have to click on “Back to safety” and the icon does not appear in the website url. Please help me to fix this. Thanks

  18. Cecilia W says

    I followed the first step, adding the https: to the website name and immediately the webpage redirected me to a sit not secure error prompt and now I can’t access my dashboard at all to finish the process or do any bug fixes. How do I reverse the first step?

  19. Tammy says

    I have used your site for a resource for a long time. Therefore, I was confident when I followed the directions in this article–to the letter. I used it on a client’s site. Which seemed to work perfectly. Then my own site. However, now I am locked out of both sites. I have a backup of them using the WP all-in-one migration plugin, but no way to access the dashboard.
    One site says too many redirects. Even when going to an incognito window or a browser where I’ve recently deleted all history, it still says delete all cookies. The other site says can’t connect to server.
    Any suggestions for me? I am pretty screwed at this point.
    Thanks,
    Tammy

  20. Sukka says

    Does my backlinks gets lost after change. Kindly some one clears it to me.
    As when I checked my website through semrush https is showing 0 backlinks but I actually have 1000+ backlinks.
    Please someone guide.
    Thanks.

  21. Divine says

    This was really helpful. Though after doing it, it showed 404 in most pages but when I updated the paramalink…it was solved

  22. Pipy says

    Please, I am looking for some ways that I can do to secure the WordPress website from hackers and becoming a secure site. Suggest please

  23. Amar Patel says

    after adding ‘s’ to the WordPress URL and site URL redirection is working properly…I removed the ‘s’ and put redirection code in my .htaccess then browser saying error too much redirection.

    If i go for first option that will be fine or not ?….how can in know my redirection working properly ?

  24. Nalin says

    Hi,

    Is it necessary to include the code in htaccess? I am using wordpress and checked with whynopadluck and manually changed the link of the images with non https link. After that, it shows all items are secure. Do I still need to update htaccess? Doesn’t WordPress redirect http to https by itself?

    • Mukesh Patel says

      If you are using cloudflare than you can easily switch your site to HTTPS. If you are using free plan then their are no option available for use custom SSL. If you install Let’s Encrypt SSL on origin server, Even after that browser will show Cloudflare SSL.

  25. Richard says

    Very helpful article. However, I am wondering if I would still be required to update the .htaccess file (per your example) if I am using the plugin: “Really Simple SSL” that you recommended in a newer article. (Also, would this plugin take care of changing the WP General Settings?)

    Thanks!

  26. James says

    We completed step 1 and now we cannot login to our wordpress to do step 2 or 3. And the only page that works on our site it the home page. All other pages try to pull up as https and gives an error. We have to manually take the s out so it’s http before the page will show.

    We’ve undone the first step and still cannot login. We are dead in the water here.

  27. Jerome Williams says

    Worked great. For people with self-signed certs yeah, you will get an error. But if you get that warning, that means you followed this tutorial correctly! All you have to do now is resolve your SSL signing issue and you’re set.

  28. Bhupesh Pant says

    Hi After making the above changes I am not able to open my site, I am not even able to login to my wp- admin page to revert https to http please help.

  29. Enyel Cuadro says

    (GoDaddy)
    define(‘FORCE_SSL_ADMIN’, true);
    after adding this line then reload the website, I got error that “your connection is not private”. I am using self-signed certificate. Please help how to setup https using self-signed certificate.

    • Kimball says

      Do a view source on your page. See anything that starts with http:// like css, js, or image files? Those will have to be changed in your content or template.

    • Mukesh Patel says

      Do not use self-signed-certificate. You can choose Let’s Encrypt SSL, Free Comodo Certificate or Cloudflare SSL. These all are free of cost.

  30. Ali O says

    I know that WPBeginner is great, but you exceeded my expectations and totally saved my week today with this how-to guide! Love you guys!

  31. Bala krishna reddy mogiligundla says

    Sir i have stuck in a problem i hope you could help , i have a hosting which is worth $300 in godaddy i have added one website and bought an ssl for that …again after some days i have added secondary site avantsolutions.ca to same hosting . i have been told that i cannot buy additional ssl to this hosting and suggested me to buy one unified ssl which costs around 350$ .Please dont mind me saying this but i have already spent alot and cant afford that ..what other options do i have

    • WPBeginner Support says

      Hello Bala Krishna,

      Please try to resolve it with your hosting provider through live chat or phone support. If you have purchased a hosting plan that doesn’t meet your needs, then you can ask them for a refund. Most hosting companies have some sort of refund policy which is usually valid during the first 30 days of signup.

      Yönetici

  32. Lydia says

    Hi, my host offers the Let’s encrypt so I have gone that route, as this is all new I have created a new site to practice on which i set up the lets encrypt shared ssl. Now I am trying to move it from http to https I did install the simple ssl plugin but it did not find my ssl certificate, not sure if it is set to work with shared lets encrypt so, i found another plugin called wp encrypt which is designed specifically for the shared lets encrypt but i am not able to get it to connect the way it instructs. I have checked my outgoing connections and they are clear. Would appreciate any help in working this process out, so I can get started on the shift. Thanks

  33. Max says

    Followed the instructions and basically bricked my website.

    between 404 errors, database connection errors and more and more errors… that 301 redirect causes way too many problems.

  34. Brian Luff says

    Thanks for the article, which is interesting and informative. There’s one problem it doesn’t mention, and no-one else has commented so I wonder if I’m missing something.

    I bought a third-party SSL certificate from the hosting company and switched to HTTPS. After making the .htaccess changes, everything worked fine, except…

    None of the pages get a green padlock. Instead, there’s an info link that says the pages are ‘partially secure’.

    I checked with the hosting company, and they said I had to change every internal link to HTTPS, and the URL of every image likewise. If I don’t do that, then no green padlock.

    Manually making all those changes would take me months even if I worked 8 days per week, 25 hours per day. If I’d known that at the outset, I would not have made the change to SSL/HTTPS in the first place.

    Is what I’m being told correct? If so, is there any (even semi-)automated way of updating all the links in the site?

      • Brian Luff says

        Many thanks for that, I’ll remember it for next time (I have a personal blog I’m thinking about moving from .com to .org). In this case I already bit the bullet. It turns out I was exaggerating but it did take me several hours to go through 200 posts and 70 pages manually changing all the internal links and the image references. At the end of all that, there was still no green padlock, but I found the last few instances using a useful (free) tool (which may or may not be a useful adjunct to your plugin). I now have another question, but I’ll post it separately for clarity. Thanks again for responding.

    • Felix says

      Hi Brian,
      There is another ultimate solution for that problem. Try to make Backup of MySQL database of your site manually by the procedure:
      https://www.wpbeginner.com/beginners-guide/how-to-make-a-wordpress-database-backup-manually/
      OR.
      Almost any hosting provider has an option such as “download MySQL database” or “dump MySQL database”. You will download .sql file. After that open that .sql file in text editor such notepad++ and try the find-replace function to find “http” and replace it by “https”. It will take a second.

  35. hiren says

    hii,

    I does the changes as above in my site but now it is getting problem ” Error establishing a database connection”

    so i’ve no idea where to do changes .

    pls help. thanks in advance.

  36. Tom W says

    A quick update – there is a free plugin called Really Simple SSL that you can download, activate, and it works great!

    Many thanks to the author.

  37. Jason says

    I tried this and had a problem. I switched from a basic html/htm site to wordpress so my .htaccess has a lot of 301 redirects. No I’ve bought an SSL In the current setup if I add RewriteRule ^(.*)$ to the .htaccess file then if anybody attempts to browse the site they get “the webpage has a redirect loop” error. So I’ve had to take out that line of code. Anything I can do?

  38. Avinash Kumar says

    I am using cloudflare for https and want to know how to display “secure lock sign” before the https:// and I also want to know why you are not using https ?

  39. Bart Nash says

    When configuring the SSL certificate, is it better to add the www to https:// or leave off the www when setting up a new wp site.

  40. tim says

    Reason when I complete all the steps. Thank you for your article! I was wondering though, my website recently has suffered some problems with.

Bir Cevap Bırakın

Yorum bırakmayı seçtiğiniz için teşekkür ederiz. Lütfen tüm yorumların yorum poli̇ti̇kasi uyarınca denetlendiğini ve e-posta adresinizin yayımlanmayacağını unutmayın. Ad alanında anahtar kelime KULLANMAYIN. Kişisel ve anlamlı bir sohbet edelim.