• 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

SSL Redirect errors

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 › SSL Redirect errors

This topic is: resolved
  • This topic has 2 replies, 2 voices, and was last updated 5 years, 8 months ago by Jumpringer.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • July 19, 2017 at 11:36 am #209300
    Jumpringer
    Member

    Adding SSL to existing site; getting redirect errors:

    Currently:
    1) In .htaccess, redirecting as follows:
    RewriteCond %{HTTP_HOST} ^www.original.org$ [OR]
    RewriteCond %{HTTP_HOST} ^oldomain.com$
    RewriteRule ^(.*)$ http://www.original.org/WPdirectory/$1 [R=301,L]

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

    (the above .htaccess does Not result in a padlock or https prefix...site is redirected to http://www.original.org/WPdirectory)

    In Options(db), the site and WP urls are set as http://original.org/WPdirectory

    If I change the Options to an HTTPS prefix, then I get redirect errors.

    An SSL test showed this error:

    Error: ERROR: The secure URL you submitted was redirected to:
    http://original.org/WPdirectory/
    and
    Secure URL submitted: https://original.org

    Would appreciate insights into how to fix....thanks.

    July 19, 2017 at 12:50 pm #209301
    Victor Font
    Moderator

    This question has nothing to do with the Genesis Framework or Studio Press themes, but I'll provide some input anyway.

    In the first redirect, you are redirecting to http. Here's a much easier https redirect.

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


    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    July 19, 2017 at 2:27 pm #209308
    Jumpringer
    Member

    Thank you - much appreciated!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 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