SSL Integration nightmare (too many redirects)

Permalink
Hi guys,

I am running 5.7.5.8

I wanted to write as I have - with the support of my virtual Server Host support team loaded an SSL certificate on the server successfully but cannot get my Concrete5 site to change to SSL.

Basically I downloaded the C5 module 'SSL Redirect Configuration' I associated it to my site and then logged on the click download and then Install - the site crashed!

I have read other people had the same issue.

Here are the steps I took and a copy of my original htaccess file.

1. searched for and downloaded the SSL Redirect Configuration module.
2. Associated it with the website Project
3. Logged into my dashboard and downloaded it.
4. As soon as i click the button INSTALL the screen went dark and the website crashed.
5. I couldn't sign in and when I looked at the cPanel file structure htaccess file I could see it had been changed.
6. When I tried to log into the site all I got was ERROR TOO_MANY_REDIRECTS
7. When I changed the htaccess file back to what it was it had not effect - still the same ERROR.
8. Blood boiled and I said a few choice words thinking of all the time this would take.
9. Contacted the Virtual Server Support team. They logged on and made several unknown changes to no avail as the site kept cycling between https and http every few second but showing the same ERROR screen TOO_MANY_REDIRECTS.
10. after many attemps by the support team who referenced this site and read other peoples experience they reloaded a back-up from two nights previous and the site it now working as http.
11. They have instructed me to write to you guys and get C5 support.

So there we go.
I am getting to the stage where I dislike C5 because of the issues and also because I simply cannot understand the file structure!"

Can anyone please tell me how to get my site to SSL before Google rolls out it SSL priority changes.

I still have the SSL Redirection module associated with my site by the way.

And the reason I haven't upgraded the C5 version is the site was working perfectly with the exception of the blog page not working and I do not want to break it as I haven't the time to spend trying to fix it. I simply want a stable and secure website.

Thank you for reading so far - well done and give yourself a pat on the back.

Any Positive and Constructive comments willingly accepted

Thank you.

here is the htaccess file text:
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --


Fanflame

2 Attachments

Fanflame
View Replies:
weyboat replied on at Permalink Reply
weyboat
Go to
dashboard > system > seo > urls and set your ssl url as https and your canonical url as https.
Next edit your theme header file and change the links from http to https.
Clear your cache and your browser cache and view the results..
Fanflame replied on at Permalink Reply
Fanflame
Thanks for replying to me .

Can you tell me the path to the Theme where I need to change the Header File as I am using the Stucco theme and it appears in several places - it always confuses me to where to make changes exactly?

I have these options:
public_html/www.MYSITE.co.uk/packages/theme_stucco/themes/stucco/inc
public_html/www.MYSITE.co.uk/application/themes/theme_stucco/themes/stucco/inc

Also when I look at the inc/ folder there are 2 file options:
Header.php
Header_top.php

Where do I make changes?

Thank you for your help.

Fanflame
weyboat replied on at Permalink Reply
weyboat
Look in all of them and wherever you see this..
http://wessexfillingstation.co.uk

change it to this
https://wessexfillingstation.co.uk
Fanflame replied on at Permalink Reply
Fanflame
Hi weyboat,

I have looked for and cannot find any reference to the site name either http or https in the header files.

I have also searched the whole site in cpanel for any reference to thehttp://wessex... but this comes up with no results. Do I need to add it somewhere?

Plus do I need to amend or update the htaccess file?

Thank you for your help in trying to get this site updated to https however I am not having much success at the moment.
Fanflame replied on at Permalink Reply 1 Attachment
Fanflame
Hi Weyboat,

I took the plunge and tried to do what you suggested by changing both the Canonical URL and SSL URL to https but got an error when I tried to apply it and only the SSL link was updated.

I can go to thehttps://wessexfillingstation.co.uk... URL successfully but when i log onto a link it simply goes back to being http - so there is a mixture now.

obviously I need every page image and link within it to be updated.

When i check the sites Cert it loads the information correctly.

Can you or anyone else advise me please.

Thank you

Fanflame
weyboat replied on at Permalink Reply
weyboat
I will setup a test site with your version of concrete and the Stucco theme to track down this issue..
weyboat replied on at Permalink Reply
weyboat
Please look at your application/config/generated-overrides/concrete.php file and post the code here..
Fanflame replied on at Permalink Reply
Fanflame
Hi Weyboat

Thank you for your assistance, here is the code from the concrete.php file found in the:

"MySite/application/config/generated_overrides" folder

<?php
/**
 * -----------------------------------------------------------------------------
 * Generated 2018-07-06T13:05:28+01:00
 *
 * DO NOT EDIT THIS FILE DIRECTLY
 *
 * @item      seo.redirect_to_canonical_url
 * @group     concrete
 * @namespace null
 * -----------------------------------------------------------------------------
 */
return array(
    'site' => 'https://wessexfillingstation.co.uk',
    'version_installed' => '5.7.5.8',
Fanflame replied on at Permalink Reply
Fanflame
wow thank you so much for your help.
Fanflame
weyboat replied on at Permalink Reply
weyboat
copy the concrete.php to application/config/concrete.php
and change this
'redirect_to_canonical_url' => 0,

To this
'redirect_to_canonical_url' => 1,
weyboat replied on at Permalink Reply
weyboat
For good measure you can edit the htaccess file and change the concrete5 urls code to this
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
# -- redirect http to https --
RewriteCond %{HTTP_HOST} wessexfillingstation\.co\.uk [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://wessexfillingstation.co.uk/$1 [R,L]
</IfModule>
        # -- concrete5 urls end --
Fanflame replied on at Permalink Reply
Fanflame
Morning Weyboat

Thank you for all the information you supplied. This morning (Monday) I made both the changes that you suggested making sure that I backed up the files in question. However there is still an issue.

When both the changes ( to the concrete.php and .htaccess ) files were applied the site went offline with the same error as before ERR_TOO_MANY_REDIRECTS.

I decided to clear the cache and restart but this made no difference so I also fires up the Tablet- same issue here too.

I left the concrete.php file as it was (with the change) and took out the new lines from the htaccess file and the site came back on line as before.

I can see that I can now get to it by typing either https:// or http:// but the site shows up as insecure. One small change however has been that some of the images that were not showing up before unless you specifically typedhttp://mysite are now showing up okay - so we are getting there.

Obviously you have the URL of the site so you can see for yourself.

I do appreciate you help and advice in this matter.

Any other help is gratefully received.

enjoy your day.

Fanflame

ps: I am on UK time where in the world are you living?
weyboat replied on at Permalink Reply
weyboat
Okay I will take a look..
I am in Weymouth, so we are next door neighbours!
Fanflame replied on at Permalink Reply
Fanflame
Many thanks Weyboat
I appreciate your local neighbourly assistance

Fanflame
Christchurch
Fanflame replied on at Permalink Reply
Fanflame
Many thanks Weyboat
I appreciate your local neighbourly assistance

Fanflame
Christchurch
weyboat replied on at Permalink Reply
weyboat
To help you further I will need to see your file structure, access to the server would be the best way.
If I can grab a copy of your files and database, I can set this up on my local dev server and test it thoroughly without affecting your live site..
If this is agreeable to you, send me a private message with the details..
Fanflame replied on at Permalink Reply
Fanflame
Thanks Weyboat I will look at this later as I am out of office today. I will PM you.

Fanflame