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

Jak prawidłowo przenieść WordPress z HTTP na HTTPS (przewodnik dla początkujących)

Uwaga redakcyjna: Otrzymujemy prowizję z linków partnerskich na WPBeginner. Prowizje nie mają wpływu na opinie i oceny naszych redaktorów. Dowiedz się więcej o Proces redakcyjny.

Czy chcesz przenieść WordPress z HTTP na HTTPS i zainstalować certyfikat SSL na twojej witrynie internetowej?

Otrzymaliśmy wiele zapytań na ten temat, ponieważ Google ogłosiło w lipcu 2018 r., że przeglądarka Chrome będzie oznaczać wszystkie witryny internetowe bez SSL jako niezabezpieczone.

W tym artykule pokażemy, jak prawidłowo przenieść WordPress z HTTP na HTTPS poprzez dodanie certyfikatu SSL.

Moving WordPress from HTTP to HTTPS / SSL

Nie martw się, jeśli nie masz pojęcia, czym jest SSL lub HTTPS. Wyjaśnimy to również.

Co to jest HTTPS?

HTTPS lub Secure HTTP to metoda szyfrowania, która zabezpiecza połączenie między przeglądarką użytkownika a twoim serwerem. Utrudnia to hakerom podsłuchiwanie połączenia.

Każdego dnia udostępniamy nasze dane osobowe różnym witrynom internetowym, czy to dokonując zakupu, czy po prostu logując się.

Aby zabezpieczyć transfer danych, należy utworzyć bezpieczne połączenie.

Wtedy właśnie pojawiają się SSL i HTTPS.

Każda witryna otrzymuje unikatowy certyfikat SSL w celu identyfikacji. Jeśli serwer udaje, że korzysta z protokołu HTTPS, a jego certyfikat nie jest zgodny, większość nowoczesnych przeglądarek ostrzega użytkownika przed połączeniem się z witryną internetową.

Connection not private error in Google Chrome

Teraz pewnie zastanawiasz się, dlaczego muszę przenieść moją witrynę WordPress z HTTP na HTTPS, zwłaszcza jeśli jest to prosty blog lub witryna internetowa małej firmy, która nie pobiera żadnych płatności.

Dlaczego potrzebujesz HTTPS i SSL?

W 2018 roku Google ogłosiło plan poprawy ogólnego zabezpieczenia sieci poprzez zachęcanie właścicieli witryn internetowych do przejścia z protokołu HTTP na HTTPS. W ramach tego planu ich popularna przeglądarka internetowa Chrome oznaczałaby wszystkie witryny internetowe bez certyfikatu SSL jako „Niezabezpieczone”.

Connection not secure

Google stwierdziło również, że witryny internetowe z SSL również odniosą korzyści SEO i uzyskają wyższe rankingi wyszukiwania niż witryny niezabezpieczone. Od tego czasu wiele witryn internetowych przeszło z protokołu HTTP na HTTPS.

Po ogłoszeniu, Google rozpoczęło wdrażanie ostrzeżenia „Not Secure” w Chrome. Na przykład, jeśli ktoś przejdzie na witrynę internetową HTTP przy użyciu okna incognito, zostanie ona oznaczona jako Niezabezpieczona. Jeśli ktoś przejdzie na stronę HTTP w zwykłym trybie i spróbuje wypełnić formularz kontaktowy lub inny formularz, witryna internetowa zostanie oznaczona jako niezabezpieczona.

Kiedy twoi czytelnicy i klienci widzą to powiadomienie, daje im to złe wrażenie o twojej firmie.

Dlatego wszystkie witryny internetowe muszą natychmiast przejść z HTTP na HTTPS i zainstalować SSL.

Nie wspominając już o tym, że jeśli chcesz akceptować płatności online na swojej witrynie internetowej e-handel, potrzebujesz SSL.

Większość firm płatniczych, takich jak Stripe, PayPal Pro, Authorize.Net itp., będzie wymagać bezpiecznego połączenia przed zaakceptowaniem płatności.

Używamy SSL dla naszych witryn internetowych, w tym WPBeginner, OptinMonster, WPForms i MonsterInsights.

Wymagania dotyczące korzystania z HTTPS/SSL na witrynie WordPress

Wymagania dotyczące korzystania z SSL w WordPress nie są zbyt wysokie. Wszystko, co musisz zrobić, to kupić certyfikat SSL, a być może masz go już za darmo.

Najlepsze firmy hostingowe WordPress oferują darmowe certyfikaty SSL dla wszystkich swoich użytkowników:

Więcej szczegółów można znaleźć w naszym przewodniku na temat tego, jak uzyskać bezpłatny certyfikat SSL dla twojej witryny internetowej WordPress.

Jeśli twoja firma hostingowa nie oferuje bezpłatnego certyfikatu SSL, musisz go zakupić.

Zalecamy korzystanie z Domain.com, ponieważ oferują najlepszą ofertę SSL zarówno dla zwykłych, jak i wieloznacznych certyfikatów SSL.

Kupując u nich certyfikat SSL, otrzymujesz również pieczęć TrustLogo dla Twojej witryny internetowej, a każdy certyfikat SSL jest objęty minimalną gwarancją zabezpieczenia w wysokości 10 000 USD.

Po zakupie certyfikatu SSL należy poprosić dostawcę hostingu o jego zainstalowanie.

Konfiguracja WordPressa do korzystania z SSL i HTTPS

Po włączeniu certyfikatu SSL dla twojej domeny, będziesz musiał skonfigurować WordPressa tak, aby używał protokołów SSL i HTTP na twojej witrynie internetowej.

Pokażemy ci dwie metody, aby to zrobić i możesz wybrać tę, która najlepiej odpowiada twoim potrzebom.

Film instruktażowy

Subscribe to WPBeginner

Jeśli wolisz pisemne instrukcje, czytaj dalej

Metoda 1: Konfiguracja SSL/HTTPS w WordPress przy użyciu wtyczki

Ta metoda jest łatwiejsza i zalecana dla początkujących.

Najpierw należy zainstalować i włączyć wtyczkę Really Simple SSL. Aby uzyskać więcej informacji, zobacz nasz przewodnik krok po kroku, jak zainstalować wtyczkę WordPress.

Po włączaniu należy przejść na stronę Ustawienia ” SSL. Wtyczka automatycznie wykryje twój certyfikat SSL i skonfiguruje witrynę WordPress do korzystania z protokołu HTTPS.

SSL enabled on a WordPress website

Wtyczka zajmie się wszystkim, w tym błędami związanymi z mieszaną treścią. Oto, co wtyczka robi za kulisami:

  • Sprawdź certyfikat SSL
  • Ustawienie WordPressa tak, by używał https w adresach URL
  • Konfiguracjaprzekierowań z HTTP na HTTPS
  • Poszukaj adresów URL w twojej treści, które wciąż są wczytywane z niezabezpieczonych źródeł HTTP i spróbuj je poprawić.

Uwaga: Wtyczka próbuje poprawiać błędy mieszanej treści przy użyciu techniki buforowania wyjściowego. Może to mieć negatywny wpływ na wydajność, ponieważ zastępuje treść na witrynie podczas wczytywania strony. Wpływ ten jest widoczny tylko przy pierwszym wczytywaniu strony i powinien być minimalny, jeśli używasz pamięci podręcznej wtyczki.

Chociaż wtyczka mówi, że możesz zachować SSL i bezpiecznie wyłączać wtyczkę, nie jest to w 100% prawdą. Będziesz musiał pozostawić wtyczkę aktywną przez cały czas, ponieważ wyłączanie wtyczki spowoduje powrót błędów mieszanej treści. Więcej szczegółów można znaleźć w naszej recenzji Really Simple SSL.

Metoda 2: Ręczna konfiguracja SSL/HTTPS w WordPress

Ta metoda wymaga ręcznego rozwiązywania problemów i edytowania plików WordPress. Jest to jednak trwałe i bardziej zoptymalizowane pod kątem wydajności rozwiązanie, z którego korzystamy na WPBeginner.

Jeśli uważasz, że ta metoda jest trudna, możesz zatrudnić programistę WordPress lub skorzystać z pierwszej metody.

W ramach tej metody może być konieczna edycja motywu WordPress i plików kodu. Jeśli nie robiłeś tego wcześniej, zapoznaj się z naszym przewodnikiem na temat kopiowania i wklejania fragmentów kodu w WordPress.

Najpierw należy przejść na stronę Ustawienia ” Ogólne. W tym miejscu należy zaktualizować twoje pola adresu URL WordPress i witryny, zastępując http na https.

Update WordPress URLs

Nie zapomnij kliknąć przycisku „Zapisz zmiany”, aby zapisać twoje ustawienia.

Po zapisaniu ustawień WordPress wyloguje cię i zostaniesz poproszony o ponowne zalogowanie.

Następnie musisz skonfigurować przekierowania WordPress z HTTP na HTTPS, dodając następujący kod do twojego pliku .htaccess:

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

Jeśli korzystasz z serwerów NGINX, będziesz musiał dodać następujący kod, aby przekierować z HTTP na HTTPS w twoim pliku konfiguracyjnym:

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

Nie zapomnij zastąpić example.com nazwą twojej domeny.

Wykonując te kroki, unikniesz błędu WordPress HTTPS nie działa, ponieważ WordPress będzie teraz wczytywać całą twoją witrynę internetową za pomocą HTTPS.

Jeśli chcesz wymusić SSL i HTTPS na twoim obszarze administracyjnym WordPress lub stronach logowania, musisz skonfigurować SSL w pliku wp-config.php.

Dodaj następujący kod nad linią „To wszystko, przestań edytować!” w twoim pliku wp-config.php:

define('FORCE_SSL_ADMIN', true);

Ta linia pozwala WordPressowi wymusić SSL / HTTP w obszarze administracyjnym WordPress. Działa również w sieciach witryn WordPress.

Gdy to zrobisz, twoja witryna internetowa jest w pełni skonfigurowana do korzystania z SSL / HTTPS, ale nadal będziesz napotykać błędy mieszanej treści.

Błędy te są powodowane przez źródła (obrazki, skrypty lub arkusze stylów), które nadal są wczytywane przy użyciu niezabezpieczonego protokołu HTTP w adresach URL. W takim przypadku na pasku adresu twojej witryny internetowej nie będzie widoczna ikonka zabezpieczenia w postaci kłódki.

Not secure

Wiele nowoczesnych przeglądarek automatycznie blokuje niebezpieczne skrypty i zasoby.

Możesz zobaczyć ikonkę kłódki, ale z powiadomieniem o tym w pasku adresu twojej przeglądarki.

Insecure content blocked

Za pomocą narzędzia Inspect można sprawdzić, które treści są serwowane za pośrednictwem niezabezpieczonego protokołu.

Błąd mieszanej treści zostanie wyświetlony jako ostrzeżenie w konsoli ze szczegółowymi informacjami dla każdego elementu mieszanej treści.

Mixed content errors displayed in browser console

Zauważysz, że większość adresów URL to obrazki, ramki iframe i galerie obrazów, podczas gdy niektóre to skrypty i arkusze stylów wczytywane przez twoje wtyczki i motywy WordPress.

Poprawka mieszanych treści w bazie danych WordPressa

Większość nieprawidłowych adresów URL to obrazki, pliki, osadzanie i inne dane przechowywane w twojej bazie danych WordPress. Poprawmy je w pierwszej kolejności.

Musisz znaleźć wszystkie wzmianki o adresie URL twojej starej witryny w bazie danych, które zaczynają się od http i zastąpić je nowym adresem URL witryny, który zaczyna się od https.

Możesz to łatwo zrobić, instalując i włączając wtyczkę Search & Replace Everything. Aby uzyskać więcej informacji, zapoznaj się z naszym przewodnikiem krok po kroku, jak zainstalować wtyczkę WordPress.

Po włączaniu należy przejść na stronę Narzędzia ” WP Wyszukaj i zamień. W polu „Szukaj” należy dodać adres URL Twojej witryny internetowej z http. Następnie w polu „Zamień” dodaj adres URL Twojej witryny internetowej z https.

Add URLs into the search and replace fields

Poniżej zobaczysz wszystkie twoje tabele bazy danych WordPress. Musisz wybrać je wszystkie, aby przeprowadzić dokładną kontrolę.

Select all tables in Search & Replace Everything

Następnie kliknij przycisk „Podgląd wyszukiwania i zamiany”, aby zobaczyć wszystkie zmiany wprowadzone przez wtyczkę. Na koniec kliknij przycisk „Zamień wszystko”.

Click the Replace All button

Wtyczka przeszuka teraz twoją bazę danych WordPress pod kątem adresów URL zaczynających się od http i zastąpi je bezpiecznymi adresami URL https. Może to chwilę potrwać, w zależności od rozmiaru twojej bazy danych WordPress.

Poprawka błędów mieszanych treści w motywie WordPress

Innym częstym winowajcą powodującym błędy mieszania treści jest twój motyw WordPress. Każdy przyzwoity motyw WordPress zgodny ze standardami kodowania WordPress nie spowoduje tego problemu.

Po pierwsze, będziesz musiał użyć narzędzia Inspect twojej przeglądarki, aby znaleźć zasoby i miejsce, z którego są wczytywane.

Using inspect tool to find mixed content error

Następnie musisz znaleźć je w twoim motywie WordPress i zastąpić je https. Będzie to trochę trudne dla większości początkujących, ponieważ nie będziesz w stanie zobaczyć, które pliki motywu zawierają te adresy URL.

Poprawka błędów mieszanych treści spowodowanych przez wtyczki

Niektóre zasoby o mieszanej treści będą wczytywane przez wtyczki WordPress. Każda wtyczka WordPress zgodna ze standardami kodowania WordPress nie spowoduje błędów mieszanej treści.

Nie zalecamy edytowania plików wtyczek WordPress. Zamiast tego należy skontaktować się z autorem wtyczki i poinformować go o tym. Jeśli nie odpowiedzą lub nie będą w stanie tego poprawić, powinieneś znaleźć odpowiednią alternatywę.

Uwaga: Jeśli z jakiegoś powodu nadal napotykasz błąd mieszanej treści, zalecamy tymczasowe korzystanie z wtyczki Really Simple SSL, aby nie wpływać na użytkowników, podczas gdy poprawisz problem na witrynie przejściowej lub zatrudnisz programistę.

Prześlij swoją witrynę HTTPS do Google Search Console

Wyszukiwarki takie jak Google uważają https i http za dwie różne witryny internetowe. Aby uniknąć problemów z SEO, musisz poinformować Google, że Twoja witryna internetowa została przeniesiona.

Aby to zrobić, wystarczy przejść do twojego konta Google Search Console i kliknąć przycisk „Dodaj właściwość”.

Add property

Spowoduje to wyświetlenie wyskakującego okienka, w którym należy utworzyć nowy adres https twojej witryny internetowej.

Istnieją dwie metody weryfikacji witryny: nazwa domeny lub prefiks adresu URL. Zalecamy metodę prefiksu adresu URL, ponieważ jest ona bardziej elastyczna.

Add website URL in Google Search Console

Następnie Google poprosi Cię o zweryfikowanie własności Twojej witryny internetowej.

Można to zrobić na kilka sposobów. Wybierz dowolną metodę, a otrzymasz instrukcje dotyczące weryfikacji twojej witryny. Zalecamy skorzystanie z metody tagów HTML.

HTML tag method to verify your site

Zobaczysz teraz fragment kodu HTML, który musisz dodać do sekcji head twojej witryny internetowej WordPress.

Dodawanie kodu weryfikacyjnego Search Console za pomocą All in One SEO

Najpierw zainstaluj i włącz wtyczkę All in One SEO for WordPress. Aby uzyskać więcej informacji, zapoznaj się z naszym poradnikiem na temat instalacji wtyczki WordPress.

Uwaga: Istnieje również darmowa wersja All in One SEO, którą można wypróbować.

Po włączaniu przejdź do strony All in One SEO ” Ustawienia ogólne i kliknij Google Search Console.

Add Google Search Console verification code in All in One SEO

Poniżej należy dodać kod weryfikacyjny skopiowany wcześniej z witryny internetowej Google Search Console.

Nie zapomnij kliknąć przycisku „Zapisz zmiany”, aby zapisać twoje ustawienia.

Następnie przełącz się z powrotem na kartę Google Search Console i kliknij przycisk „Weryfikuj”.

Verify ownership

Gdy twoja witryna zostanie zweryfikowana, Google wyświetli tutaj raporty Search Console.

Musisz również upewnić się, że zarówno wersja https, jak i http są dodane do twojej Search Console.

Informuje to Google, że chcesz, aby wersja https Twojej witryny internetowej była traktowana jako wersja podstawowa. W połączeniu z przekierowaniami 301, które skonfigurowałeś wcześniej, Google przeniesie twoje rankingi wyszukiwania do wersji https witryny internetowej i najprawdopodobniej zauważysz poprawę w rankingach wyszukiwania.

Mamy nadzieję, że ten artykuł pomógł Ci dodać HTTPS i SSL w WordPress. Możesz również zapoznać się z naszym przewodnikiem po zabezpieczeniach WordPress z instrukcjami krok po kroku, aby Twoja witryna WordPress była bezpieczna lub z naszymi eksperckimi wyborami najlepszych rozwiązań analitycznych dla WordPress.

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.

Ujawnienie: Nasze treści są wspierane przez czytelników. Oznacza to, że jeśli klikniesz na niektóre z naszych linków, możemy otrzymać prowizję. Zobacz jak WPBeginner jest finansowany, dlaczego to ma znaczenie i jak możesz nas wspierać. Oto nasz proces redakcyjny.

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.

Najlepszy zestaw narzędzi WordPress

Uzyskaj BEZPŁATNY dostęp do naszego zestawu narzędzi - zbiór produktów i zasobów związanych z WordPressem, które każdy profesjonalista powinien mieć!

Reader Interactions

406 komentarzyZostaw odpowiedź

  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. Raul says

    Hi,

    I’m in a predicament due to lack of knowledge and Google. My website is currently ranked # 2 in Google for a particular organic keyword. I ordered a SSL from my hosting company and I received confirmation that the SSL is ready to be used. I would like to use the SSL on every page in my site including the shopping cart but I don’t want to lose the #2 ranking in Google by not converting to SSL properly. Your advice will be appreciated.

    Raul

  3. Jonathon Fowler says

    Hi there,

    Great article. One question, I read that using a wildcard redirect will have a negative impact on SEO – is this correct? The articel says ranking will drop using a wildcard redirect.

    I have thousands if images on my site using http in the url…using yur redirect would direct all images to the new https?

    Thanks !

  4. dylan says

    Hi,

    I love your site – lots of good stuff here.

    I’m wondering if you can recommend a wordpress security plug-in that you know for sure plays friendly (without too much hassle) with full site SSL / HTTPS.

    My site is covered already (every page) but I’m worried about installing a plug-in that may interfere.

    Any suggestions would be much appreciated.

    Cheers

  5. Joe says

    Will changing the Site URL in WordPress to „HTTPS” auto redirect any HTTP requests?

    We don’t need htaccess rewrites if the SITE URL is HTTPS?

  6. Cristi Scutaru says

    Great post, it helped me switch my WordPress site to SSL in just a few minutes!

    Great site as well, congrats for such a valuable content. I found myself often googling for some WordPress related answers for the past few days, and your pages came on top frequently, with clear and concise solutions.

  7. Piet says

    When only switching the WP backend to SSL, the next challenge is how to show featured images in the backend? These are loaded via http instead of https and as such do not show in the WP backend anymore.

    Is there a way to load them from https for the backend only or do I just have to accept the fact that I will not be able to see them (in the backend)?

  8. Logan says

    Thanks for this great guide to setting up https. Was using the plugin your mentioned for a long time but it caused problems with my site so I only used it to secure my admin panel. Now I can cover my entire site.

  9. Felix Figueroa says

    The .htaccess edit broke my site with the „ERR_TOO_MANY_REDIRECTS” message. Tried suggestions detailed in this post. After disabling all plugins i get a 500 Server Error. Thanks, my site is completely broken now.

  10. beamkiller says

    Dear wpBeginner,

    I have made the modifications in htaccess and Options too but I got error in Chrome:
    ERR_TOO_MANY_REDIRECTS

    So my page is not secured with SSL, on Checkout and My-Account it is working with WooCommerce. But I cannot get to work it on the whole WP installation.

    • MMPrint says

      Hope this helps:

      Uncheck the WooCommerce “Un-force HTTPS when leaving the checkout” setting.

      The htaccess if forcing https but then woocommerce forces http so they just go back and forth in a loop.

      • Chetan says

        Hi MMPrint

        I can give thousand thumbs up to your answer. This has solved my issue which i was living with since the last 10 days. No matter what i tried in the .htaccess file the site wasnt showing up. I also played with deactivating the plugins etc etc. Finally it was woocommerce which was the culprit.

        Thanks a lot man !

        Cheers
        Chetan

  11. Kevin Verlinden says

    I like this site the information is very useful and comprehensive. It has helped me already a lot of times.

      • Austin says

        „We already use SSL for our eCommerce sites like OptinMonster, Soliloquy, and Envira Gallery.”

        I took this to mean all of the pages – wondering if that was the case and now for some reason it has been reverted to non-SSL?

        Thanks!

  12. George says

    I tried this plugin and it broke my site. Uninstalled in immediately. I still need what this plugin offered, which is https on some pages, but not the whole site. Is there any other plugin (other than this one, which hasn’t been updated in over two years) that can do this?

      • Celeste says

        What do you mean, Patrick, that iThemes Security will take care of this. I just went to their website and it seems like a good plugin for enhanced security. But I didn’t see any reference to SSL or setting up specific pages to use SSL only.

  13. Octavio Cestari says

    I did the installation of a plugin which forced all the site enter https, now I can no longer access the site or the wordpress dashboard, how do I reverse the process?

  14. Drew says

    I just added the code using your .htaccess solution. Worked perfectly and exactly as described. A big thank you!

  15. michael s says

    You say all you need to do is buy a certificate, but my hosting service requires a static IP address also which is WAY more expensive than a basic certificate. My service wants $4/month for static IP.

  16. DJ says

    HELP!
    I did this change and now I can’t access my site through WP-ADMIN
    It is stating my site is down. I don;t have an .htaccess file in my files. I have set FileZilla to show hidden files and cannot find it. Can you help me get back into my site?

    Thanks.

  17. Sasha says

    I used the .htaccess method and got this error:

    „The page isn’t redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    This problem can sometimes be caused by disabling or refusing to accept cookies.”

    Any one has an idea?

    thanks

  18. Mike S says

    I added the code into the .htaccess and I got the following issue:

    The page isn’t redirecting properly

    Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

    This problem can sometimes be caused by disabling or refusing to accept cookies.

  19. Marych says

    PLEASE HELP

    I didn t get a certificate but just went to settings > General and replaced http by https .
    after updating I can t access to my wordpress url and the message ’ Your connection is not private

    Attackers might be trying to steal your information from etlco.com.sa (for example, passwords, messages, or credit cards). ’ is displayed .

    Any solution , please help me

    • Andron says

      You need to get a certificate in order for it to work. When you request a page over https, it starts a conversation between your browser and the server in which the server validates its identity as the correct site. That validation occurs by sending a trusted certificate to your browser. If a certificate doesn’t exist, your browser will give you that „connection is not private” warning. It’s done to protect you from sites that aren’t who they claim to be.

      Namecheap offers basic SSL certificates for $9 a year, and there are plenty of other options. If you can wait, look into LetsEncrypt.org — they’ll be offering free ones starting this September, I think.

    • sewe herbert says

      Hi Marych, just had that same problem, but managed to fix it; here is how

      use an FTP Program, alocate the wp-config.php
      then put this just after (define(’ABSPATH’, dirname(__FILE__) . '/’);)

      define(’WP_HOME’,’http://yoursite.com’);
      define(’WP_SITEURL’,’http://yoursite.com’);

      then save and re-upload the wp-config.php file
      Then all is well

  20. Gary Morrison says

    We have did like you said .. and not we are locked out of the dashboard and any page we go to on front end will not display only home page works.

    Thank you for your time ..

    P.S. and now my images are not showing up…

  21. Tom L says

    Thank you very much for your support. I was able to install the plugin and have my site with all pages https without any adjustments.
    Perfect instructions.

  22. Tecnologia Geek says

    can i have some help here.. i dit all this step but..the site look diferent and i cant login to admin..

  23. Maarten says

    It is worth mentioning this technique breaks WooCommerce downloads. It will end in a 403 access denied for forced download or x-sendfile downloadable products.

  24. Matthew says

    Thanks for the excellent article.
    I was under the impression that installing an SSL certificate was as simple as you have indicated… however, when I installed mine it appears to confused (and completely broken) my site. I am being told that some parts of my wordpress database have changed to https, but others haven’t.
    Now I can’t get in to the wordpress admin area at all – but I can ftp to the hosting.
    Any ideas how I can update my wordpress databases and themes to reflect https rather than http ?
    I am tempted to uninstall the certificate, restore my entire site from a backup and wander off, shaking my head in frustration.
    Thanks,
    Matthew

  25. Shane says

    Your article made no mention of verifying plugin compatibility with SSL before making the change. Is that because plugin code generally doesn’t go „offsite” and hence result in „insecure” content warnings, or are plugins something that we should be concerned about and carefully review before considering the switch?

  26. Jim R says

    thank you for this- never used SSL or HTTPS before and suddenly needed a java donations page to be HTTPS. with your instructions I was able to get it working in a matter of minutes.

  27. GJ says

    Thanks for the tutorial.

    I wanted to add a few more resources..

    1) Change all the ur’s media/js etc through the Bluevelvet plugin from http to https

    2) if you do not have the green https color you can look for insecure files at whynopadlock.com

    3) Submit your https version to the webmaster tools as well

  28. Ollie says

    Excellent tips as always.

    I’d like to point out for anyone using the .htaccess redirect, to include that in their htacces file first at the top. I had the usual wordpress htaccess code at the top of the file and it wasn’t working until I pasted the new code before it.

  29. Rael says

    hi guys,

    I have an http link which cannot be changed using //www.url.com/ because the server it’s on doesn’t have SSL.

    The issue comes when this link appears on a secure page on my site.

    Is there a way to redirect it to http once off the https page?

  30. Muhammad Umer says

    Hi Syed i really need your help in this, some plugin causing this i added this today more than 5 times after few time it remove automatically from htaccess file, i am using w3 total cache.

  31. Muhammad Umer says

    Hi, Thank you for the guide i configured everything perfectly with your guide, but when i empty cache or use w3 total cach plugn they removed my .htaccess file and start their own.
    is there any settings in the plugin?
    currently want to use ssl on
    Thanks,

  32. WPBeginner Staff says

    Your site is making http requests to resources which are not secure. For example many WordPress themes fetch Google fonts using a non-https url. View your site’s source code to figure out which scripts, images, stylesheets are using non-https URLs.

    • Dustin says

      Very helpful. SSL works great on my sites now. The main issue I ran into was securing images. Easy to identify, but time-consuming to fix. It seems all I had to do was reload the same image and it fixed the problem. For sites that have hundreds or more images, is there a plugin or an easier way you’d recommend to fix insecure images? Thank you.

      • Gavin says

        Like Justin, the biggest issue I had was with images. I’m currently running SSL Insecure Content Fixer plugin with the 'Content’ option checked to resolve this issue, but it’s unsatisfactory to have to have a plugin activated all the time instead of just being able to apply a change from http to https to images across the board (perhaps other media types too? – I haven’t check this). Is there a way to apply a universal permanent change? Thanks.

Zostaw odpowiedź

Dziękujemy za pozostawienie komentarza. Pamiętaj, że wszystkie komentarze są moderowane zgodnie z naszymi polityka komentarzy, a Twój adres e-mail NIE zostanie opublikowany. NIE używaj słów kluczowych w polu nazwy. Przeprowadźmy osobistą i konstruktywną rozmowę.