News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Adding SSL information to the footer of all pages on my forum.

Started by Sunshine Meadows, November 25, 2018, 06:05:26 AM

Previous topic - Next topic

Sunshine Meadows

Hi,

Recently bought a SSL certificate from Go Daddy and it turns out I am supposed to add some code to footer on all my pages. I tried to figure it out myself and just added the code to the bottom of the Index Php page which did not work nothing happened, so I put back the original version Could someone let me know what I need to do and how. My website is currently in maintenance mode, the address is www.ouchtoo.org, the old theme is working so if you need me to take it off maintenance mode I can do.

I am able to do editing on CSS but I don't have any experience with PHP as such.

Here is the code I have a choice of two

<span id="siteseal"><script async type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=6vhOBSSrtmoLvIAHIxpHaNiv0Z2Y3umkCAT7hTmpgcmF8ePgmi"></script></span>

or

<span id="siteseal"><script async type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=6vhOBSSrtmoLvIAHIxpHaNiv0Z2Y3umkCAT7hTmpgcmF8ePgmi"></script></span>


Illori


Sunshine Meadows


Kindred

What that code does is just put a little image at the bottom of your site to tell people that you used the godaddy cert
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sunshine Meadows

Kindred,

I thought that might be the case, I would still like to know how to do it  :)

Illori,

I hope it is okay to post here rather than add a reply to the thread you directed me to. I have read through the thread and there is a far amount I dont understand nevertheless I did realise that just adding an s to the http part of the website address to me to that secure page https://ouchtoo.org. I Uploaded Repair settings looked at the settings page and it had all the addresses as http so I changed them to https however when I clicked on save settings it took me to an error page which said

This page is not working
ouchtoo.org did not send any information
ERR-EMPTY-Response.

Reading the information on the thread you linked me to it sounded like I might need to use a different version of repair Settings Php is there another version I could use?

I made sure I was using the https://ouchtoo.org address and I did try Admin tools going to
Admin > Configuration >Themes and Layout >Themes settings > and reset all themes > which added the s to all the http addresses > it worked  :)

I tried Repair settings again and it was a repeat of what I already did with the same error message.

In summary, I can now access the homepage using the http or https version of the address. Also the new theme is no loading properly. I feel so stupid that I went ahead with buying the SSL certificate from Go Daddy assuming they would just install it and make sure it works. I dont expect to get tutorial information here but if someone could  help me out that would be great. For example does whatever Go Daddy did take days to work itself through and would that mean there is nothing else I need to do?

Sunshine Meadows

Bit of good news i used this link from the thread you gave me https://www.sslshopper.com/ssl-checker.html and my site passed all green no red  :)

It looks like maybe I just need to know how to redirect people from the http to the https



Sunshine Meadows


Sunshine Meadows

Thank you to everyone for all the help given. I read the information on the links given and also looked at go Daddy help pages. There was already information written on the Htaccess file on the root of my website so I saved that to one side. Next I tried adding the code GoDaddy said I should use and it did not work. In the end I used this link https://www.whynopadlock.com/ to test the site. In the result it had a red X next to Force HTTPS  Your webserver is forcing the use of Force HTTPS , I click the box on the right for more information and it gave me the text I ended up using.

RewriteCond %{HTTP_HOST} ouchtoo\.org [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://ouchtoo.org/$1 [R,L]

I added that to the existing code i n the htaccess file. The website is now forcing http to go to https so hooray  :)

I think I might start calling myself a copy and past monkey because I still don't know how things work or what things mea. I just follow instructions and try things until I get the results I want. I just hope adding that code is not going to somehow stop the things already in htaccess. All seems okay so  8)

Thank you  :)

ps I still dont know how to add the little image to the bottom of the page that is okay.  I consider that I got the solution to the issue I was struggling with.

Kindred

to add the image, you would have to edit index.template.php for every theme that you use...   and put it within an echo statement in the section near the copyright, then add some CSS identifiers around it and to the css file so that it gets positioned correctly.

it's basically useless...
I did it here...
https://www.fx-sabers.com/forum/index.php
but something actually broke the image at some point (on the godaddy side of things) and I have not had a chance to fix it yet
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sunshine Meadows

Kindred,

Sorry about the delay in responding, and thank you for adding the description of what would need to be done.

I agree with you about it  being useless and it also annoys me that companies are failing to make adaptions to allow full use of their products on message board type sites. I am currently trying to learn more about SEO and of course that is a whole other thing.

FX Sabers the theme you are using goes well with the content  :)


Kindred

Thanks. I used bloc's studio003 theme as a base and customized it for them
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

hiren2827

You don't have to write any script in your website's footer.
You can forcefully redirect HTTP to HTTPS by place 3 lines of code in the .htaccess file.

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

Kindred

hiren,

this is a 6 month old thread that is solved....   and you didn't actually READ what the user was trying to do - because your answer does not address their issue at all.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: