• Resolved David Hunter – LAS

    (@david-hunter-las)


    Hello,

    My WordPress installation is hosted with Bluehost. About six hours ago, I ordered an SSL certificate to be installed by Bluehost onto my domain and all its sub-domains. I have never had an SSL certificate before today.

    The Bluehost control panel shows the certificate is installed correctly.

    My website can be accessed via either https://www.huntergeophysics.com or via

    The actual WordPress installation is in blog.huntergeophysics.com, and there is a redirect set up for visitors to https://www.huntergeophysics.com to go to blog.huntergeophysics.com

    So, to give more detail about the folder structure on the server:

    / (root, obviously)
    /public_html
    /public_html/blog/ <– this is where WordPress is installed.

    I also have another WordPress installation at:
    /public_html/astro/
    (accessible via

    Other than whatever Bluehost did to install the SSL certificate, I made no changes before I started having problems.

      My problems

    – When I visit either https://www.huntergeophysics.com or blog.huntergeophysics.com, the plain text content of the main page displays, but all theme elements (e.g. menus, buttons, images) do not display. However, the website is coming through via HTTPS.

    – When I visit blog.huntergeophysics.com/wp-admin/ – I get a “too many redirects” error and nothing loads.

    – When I visit astro.huntergeophysics.com, everything displays perfectly, although it is connected via HTTP and not HTTPS. The admin area for this installation works perfectly.

      What I have tried to do to fix the issues

    1. Altering both the /public_html/ and /blog/ .htaccess file
    as per https://stackoverflow.com/questions/29478863/too-many-redirects-after-switching-wordpress-to-https
    This didn’t do anything.

    2. Deactivating all plugins via FTP as per https://codex.www.ads-software.com/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F
    However, note that step 3 could not be completed because the admin area of the WordPress installation is completely inaccessible.

    3. Talking to Bluehost’s technical support. They told me to fix it myself. #notVeryUseful

    4. Changed “site URL without access to admin area” as per https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-too-many-redirects-issue-in-wordpress/
    This also didn’t help.

      What I need fixed

    1. The theme display on the /blog/ website.
    2. I need to restore access to the admin area on the /blog/ installation.
    3. I need to make the connection to the /astro/ website HTTPS.

    Can anyone please advise how to do this? I’ve got practically no idea what I’m doing here so I would appreciate comprehensive answers.

    Thanks in advance for everyones’ help.
    David

Viewing 15 replies - 1 through 15 (of 19 total)
  • David, Are you sure the SSL you purchased work with sub domains too? Because I have seen that to cover sub-domains used SSL companies are charging extra.

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Hello. Yes, Bluehost has two options – one for the domain and one that covers the domain and all subdomains. I chose the option that covers all subdomains.

    Thanks for the thought, though. ??

    Okay can you please open your wp-config.php file which is under blog directory and add below lines in to it or if you already have define it but having different URLs then change as per below. Then save the file and check again.

    define(‘WP_HOME’,’https://blog.huntergeophysics.com&#8217;);
    define(‘WP_SITEURL’,’https://blog.huntergeophysics.com&#8217;);

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Thank you; I added those two lines to the end of the file and tested the main blog page and its admin area. Sadly, nothing has changed.

    It looks like it fixed first issue now we have to figure out that sub domain is linked correctly with blog directory on server.

    Use below article as help and let me know if it resolve your issue.
    https://my.bluehost.com/cgi/help/274

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Sorry, but that hasn’t fixed the first issue… it’s still displaying erroneously on all of my devices.

    And the link you sent is to an article that explains how to create a subdomain. I don’t need to do that…

    If you seen source code of page https://blog.huntergeophysics.com you will see stylesheet URL like below.

    https://blog.huntergeophysics.com/wp-content/themes/HGtheme/style.css

    But if you try to access above URL you will receive “Page Not Found” error.

    Now if I tweek it something like below it will work.

    https://blog.huntergeophysics.com/blog/wp-content/themes/HGtheme/style.css

    And this means sub-domain is not pointed correctly with sub directory called “blog”.

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Ah ok. Well I checked the Bluehost CP subdomain area and it shows that the blog subdomain is pointed at the correct directory…

    Here’s a screenshot of my subdomain list: https://dl.dropboxusercontent.com/u/4446393/Screen%20Shot%202016-01-07%20at%202.01.26%20AM.png

    Thank you again for your advice.

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Should I remove the subdomain and recreate it in case some settings somewhere aren’t working? Or will this irreparably break the website?

    Nope, It will not break the website. You can delete and recreate it and make sure if it asks for http or https you select https.

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Ok. I have recreated the subdomain. It didn’t ask for http/https, only the directory. Still not working, sadly.

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Sorry, but it’s almost 3am here, so I’m heading to bed. Thank you for all your help this evening, and hopefully I’ll talk with you further once I awake tomorrow.

    Thank you again. ??
    Dave

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Ok, I’m back online now.
    Do you have any other suggestions please?

    Thanks again.

    Chad

    (@shortstraw8)

    https://my.bluehost.com/cgi/help/766

    Look into this for enabling wildcard ssl on subdomain with Bluehost.
    Needs to be done from the .htaccess. If you have any questions their support should be able to help you with it.

    Thread Starter David Hunter – LAS

    (@david-hunter-las)

    Thanks, Shortstraw8. The instructions in that link fixed my problems 1 and 2 completely.

    However, I still need to enable HTTPS for the /astro/ subdomain.

    Using the instructions you provided, my root folder .htaccess file now looks like this:

    # Use PHP5.4 Single php.ini as default
    AddHandler application/x-httpd-php54s .php
    # Changed PHP handler from application/x-httpd-php54s to application/x-httpd-phpbetas on Thu Dec 17 15:20:02 MST 2015.
    
     # Custom subdomain .htaccess SSL + WordPress
            RewriteEngine On
            RewriteCond %{HTTP_HOST} ^blog.huntergeophysics.com$
            RewriteCond %{REQUEST_URI} !^/blog/
            RewriteRule ^(.*)$ /blog/$1
            RewriteCond %{HTTP_HOST} ^blog.huntergeophysics.com$
            RewriteRule ^(/)?$ blog/index.php [L]
            # End custom subdomain .htaccess

    So I tried to add a new section to that file as follows in order to get /astro/ to use HTTPS as well:

    # Custom subdomain .htaccess SSL + WordPress
            RewriteEngine On
            RewriteCond %{HTTP_HOST} ^astro.huntergeophysics.com$
            RewriteCond %{REQUEST_URI} !^/astro/
            RewriteRule ^(.*)$ /astro/$1
            RewriteCond %{HTTP_HOST} ^astro.huntergeophysics.com$
            RewriteRule ^(/)?$ astro/index.php [L]
            # End custom subdomain .htaccess

    While the /astro/ installation still loads fine, it only loads in HTTP, not HTTPS.
    Could you recommend a way of getting this separate subdomain to load in HTTPS please?

    Thank you again for your help getting my main /blog/ installation up and running, which was my highest priority. ??

    David.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Redirect loop upon installing SSL certificate on Bluehost’ is closed to new replies.