• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

First time ssl on Genesis child theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › First time ssl on Genesis child theme

This topic is: not resolved

Tagged: SSL in genesis

  • This topic has 8 replies, 3 voices, and was last updated 6 years, 10 months ago by Christoph.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • April 14, 2016 at 8:07 am #183597
    asbilly92
    Participant

    Ok I have a customer's site that has had an ssl installed for quite some time (it works correctly just doesn't 'show' the lock) and I think I know what to do but I guess I'm a little afraid of what will happen to the pages, links, javascript etc after doing it πŸ™ so worried that the site will render errors or crash or something!

    Here's what I think I'm supposed to do:

    Go to the site's General Settings and change / update my site URL in the WordPress Address (URL) to be https://www.mydomain.com AND also change the Site Address (URL) to https://www.mydomain.com

    I'm looking to redirect the whole site, just fyi.

    Then: I need to do the SSL redirect from HTTP to HTTPS; by adding the following code to my .htacess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R,L]
    </IfModule>
    

    Is that correct? And if so, my remaining questions are: 'WHERE' in the .htaccess file do I add that...beginning, or end..? I already have User 301 redirects in there and then off course the # Begin WordPress line...where does this code GO in the .htadcess?

    THANK YOU IN ADVANCE!

    Will this cause my site any troubles, like will all of the images and everything get redirected?

    April 14, 2016 at 11:53 pm #183654
    Christoph
    Member

    Hi,

    do the changes at an off time so when something goes wrong, nobody sees it πŸ˜‰

    1) Yes on changing the URLs for WordPress Address and Site Address
    2) .htaccess code looks good. Some servers need a bit of different code. If you are concerned about it, I'd ask the hosting provider.
    Add it above all rewrite rules.

    There is no automatic redirection of hard coded link/image URLs. If an image is using http://sitename.com/wp-content/uploads/2016/04/sample.jpg you will get a mixed content warning. If you added a link/image in a sidebar that includes http:// you will get a mixed content warning.

    There are plugins like https://wordpress.org/plugins/really-simple-ssl/
    that try to help with this but the cleanest solution would be to change those URLs in the database.

    Also be aware that you have to change Google Analytics and Google Search Console to take the new website URL into account.

    Here is a quite good overview of the things to keep in mind: http://searchengineland.com/http-https-seos-guide-securing-website-246940


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 15, 2016 at 8:11 am #183673
    asbilly92
    Participant

    Ok wow thank you!

    So did you mean that in the .htaccess I add that code before all the 301 redirects that I already have in there? Is that what you meant?

    And on this part:

    There is no automatic redirection of hard coded link/image URLs. If an image is using http://sitename.com/wp-content/uploads/2016/04/sample.jpg you will get a mixed content warning. If you added a link/image in a sidebar that includes http:// you will get a mixed content warning.

    Do you mean that 'from now on - after the ssl is all completely done' if I add a link/image that includes the http? I wouldn't be doing that after, wouldn't all of the images from here on out automatically get the https?? I'm not sure I understand you explanation on that part...

    Also concerning image thing: I thought the code I was putting in the .htaccess file would also force the images to be https too? Am I wrong about that? What does it have to do with a sidebar? Or did you mean anywhere lol??

    Fortunately I was aware about the google updates to analytics etc that I need to do.

    I appreciate the help and would be glad to buy you a coffee lol! I think I am still so worried about messing this up, but there's not a blog yet on his site and he wants to start one so nows the time do this...!

    April 15, 2016 at 8:29 am #183688
    asbilly92
    Participant

    Ok so here's a really good question lol: Can I do all of this; 1. change the url's in the WP dashboard and 2. add the code and then if something doesn't work right can I switch it right back?? ...change the URL's back to original and remove the code will it go 'back to normal lol' ??

    April 15, 2016 at 9:05 am #183691
    Christoph
    Member

    Hi,

    you are welcome.

    1) Yes, add it at the top of the rewrite rules. ItΒ΄s the first rewrite you want to happen.

    2) No, the code you are adding does not magically change the urls of the website.
    It makes sure that all traffic coming to the website is using https.
    (If visitors type in http:// or use an old http:// link to the website, they will get redirected to the https version)

    Existing hard coded (or absolute path) urls on the website are not automatically changed.
    You can use the plugin I mentioned to help with that.
    (The plugin does not really change the urls. It just removes the absolute path (i.e the http://sitename.com/wp-content/uploads/...) and uses a relative path without specifying the mode (e.g. /wp-content/uploads/...) instead)

    A few examples:
    If you look at the footer of my homepage, you see four images.
    Those images are placed in text widgets. I had to change the "absolute/hard coded" path to the image files from http to https

    For a sidebar example, there is a Getresponse banner on the sidebar of my website (e.g. christophherr.com/articles)
    The link to show that image was called with http, so I had to change it to https

    For an example in page content, I have a Studiopress banner on christophherr/recommendations.
    That image was called with http, so I had to change it to https.

    3) Yes, you can revert 1 + 2 back to http.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    April 15, 2016 at 9:29 am #183692
    asbilly92
    Participant

    Oh yep sorry for the confusion I do understand that it's actually a redirect... I mean with the .htaccess code and I do understand that it all will be and should to https.

    So ... I can basically 'test' it out by switching the URL'S in the WP dashboard and add the code where you said and if there's issues I can switch the URL'S right back, remove the code, and it will revert right back lol?? Am I understanding it right?

    I would like to do it all without plugins, unless I can delete the plugin after it 'does it's thing' although this plugin seems like it has to 'stay put' another plugin to keep updated aggggg I would rather learn to do it the right / hard way...

    PS I bought you a coffee πŸ˜‰ , not a giant one but a normal one lol

    April 15, 2016 at 10:01 am #183695
    Christoph
    Member

    Thank you. I appreciate it. πŸ™‚

    Yes, you can revert it all back.
    You can use a search and replace plugin or query the database directly to find all instances of http:// and replace them with https://

    Or, the harder way is to go through the widgets to change all http:// references to https:// and go through every page/post and see if the green lock appears or if there is a mixed content warning.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

    May 23, 2016 at 10:05 am #186137
    MandyG
    Member

    Christoph, I'm using Genesis with Agency Pro theme. I've installed SSL and it's made mess of my site.
    See here:
    http://virtualfitnesstrainer.com/
    vs
    https://virtualfitnesstrainer.com/

    So at this point I'm not pointing my site to SSL.

    When it comes to a redirection plugin within the WP installation, will they need to be manually changed as well?
    Is there anything else I need to keep eye an out for?

    And are there any Genesis Child Themes that DON'T use the absolute url and use a relative url instead?

    Kind regards
    Mandy

    May 23, 2016 at 10:46 am #186138
    Christoph
    Member

    Hi Mandy,

    you have to add rewrite rules to .htaccess.
    The idea is that http automatically redirects to https
    (i.e. you won't be able to access an http version any longer)

    IΒ΄m not sure what redirection plugin you are referring to.

    Absolute / relative URLs has nothing to do with Genesis but the way WordPress or you add links.


    https://www.christophherr.com | Genesis Customizations | Buy me a coffee

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble