Author Topic: SSL change coming  (Read 2420 times)

0 Members and 1 Guest are viewing this topic.

tom mann

  • Administrator
  • Crew
  • *****
  • Posts: 10658
  • Representing The Railwire on The Railwire
    • http://www.chicagoswitching.com
SSL change coming
« on: January 20, 2017, 06:40:24 PM »
Heads up  :tommann:,

Over the next few days I'm going to install a SSL certificate.  This means that your connection to Railwire will be secure and encrypted.

There may be some things not working until I can iron out all the bugs.

Tom

EDIT: more info:

- After I make the change, you will have to re-enter your password.
- Redirection will be automatic: you will go from https://www.therailwire.net to https://www.therailwire.net.
- In the event that something takes longer than what I thought, I'll post an update to the Railwire Facebook group.
« Last Edit: January 20, 2017, 06:50:36 PM by tom mann »

tom mann

  • Administrator
  • Crew
  • *****
  • Posts: 10658
  • Representing The Railwire on The Railwire
    • http://www.chicagoswitching.com
Re: SSL change coming
« Reply #1 on: January 21, 2017, 10:29:12 AM »
Ok, I have this working.  However, how do I force all requests to go from http to https? For example, if you do a google search and click a Railwire link, it will still show https://www.therailwire.net/forum/  though my htaccess has this:

Code: [Select]
RewriteRule ^/?$ "https\:\/\/www\.therailwire\.net\/forum" [R=301,L]

@johnb ?

johnb

  • Crew
  • *
  • Posts: 1094
    • My blog
Re: SSL change coming
« Reply #2 on: January 21, 2017, 10:43:51 AM »
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

johnb

  • Crew
  • *
  • Posts: 1094
    • My blog
Re: SSL change coming
« Reply #3 on: January 21, 2017, 10:51:02 AM »
I posted above the basic redirect code to https, it does not involve a domain and it works fine in most cases.

As for the forum, you are successfully forcing the redirect. I just googled it like you asked, and yes, it displays as http://....but if you click on the link, it forces the redirect. All is good there. You simply have to wait for Google to recrawl and rerank the site. Once it does, the url wil update.

tom mann

  • Administrator
  • Crew
  • *****
  • Posts: 10658
  • Representing The Railwire on The Railwire
    • http://www.chicagoswitching.com
Re: SSL change coming
« Reply #4 on: January 21, 2017, 10:55:28 AM »
If I go to google and query railwire:

https://www.google.com/#q=therailwire

All the results don't have https (since there hasn't been any re-indexing yet).  But if I click a http result, I would expect to see the redirect to https which doesn't happen. I don't see the forced redirect as you do.

chicken45

  • Crew
  • *
  • Posts: 4133
  • Gender: Male
  • The guy who made DKS pee that one time.
    • Facebook Profile
Re: SSL change coming
« Reply #5 on: January 21, 2017, 11:29:49 AM »
Thanks, Obama!
Josh "John" Surkosky
Darth Vader of Penn State
PRRT&HS Member
Bass Trombone Enthusiast
Bearded Dynamo
Kentucky Colonel

              The Pig 
The pig, if I am not mistaken;
Supplies us sausage, ham, and bacon.
Let others say his heart is big—
I call it stupid of the pig.

C855B

  • Crew
  • *
  • Posts: 7827
Re: SSL change coming
« Reply #6 on: January 21, 2017, 11:33:25 AM »
...
- After I make the change, you will have to re-enter your password.
...

Didn't happen to me, straight on through. If you hadn't said anything I wouldn't have noticed until I glanced up and saw the https://.
...mike

http://www.gibboncozadandwestern.com

We don't make mistakes, we have happy accidents. We just don't tell anybody. -Bob Ross

johnb

  • Crew
  • *
  • Posts: 1094
    • My blog
Re: SSL change coming
« Reply #7 on: January 21, 2017, 11:53:59 AM »
If I go to google and query railwire:

https://www.google.com/#q=therailwire

All the results don't have https (since there hasn't been any re-indexing yet).  But if I click a http result, I would expect to see the redirect to https which doesn't happen. I don't see the forced redirect as you do.
I saw it once...try the script that I posted for shits and giggles as the first 3 lines of the .htaccess

tom mann

  • Administrator
  • Crew
  • *****
  • Posts: 10658
  • Representing The Railwire on The Railwire
    • http://www.chicagoswitching.com
Re: SSL change coming
« Reply #8 on: January 21, 2017, 12:26:11 PM »
I saw it once...try the script that I posted for shits and giggles as the first 3 lines of the .htaccess

So it actually worked! Because I have other sites here, I made it:

Code: [Select]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^therailwire\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.therailwire\.net$
RewriteRule ^(.*)$ "https\:\/\/www\.therailwire\.net\/forum" [L,R=301]

Thanks a bunch. I didn't notice it worked because Chrome seems to do some caching.

tom mann

  • Administrator
  • Crew
  • *****
  • Posts: 10658
  • Representing The Railwire on The Railwire
    • http://www.chicagoswitching.com
Re: SSL change coming
« Reply #9 on: January 21, 2017, 12:32:35 PM »
Didn't happen to me, straight on through. If you hadn't said anything I wouldn't have noticed until I glanced up and saw the https://.

Great news. I wasn't sure, but wanted to give folks some notice in case it happened.

johnb

  • Crew
  • *
  • Posts: 1094
    • My blog
Re: SSL change coming
« Reply #10 on: January 21, 2017, 12:39:16 PM »
So it actually worked! Because I have other sites here, I made it:

Code: [Select]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^therailwire\.net$ [OR]
RewriteCond %{HTTP_HOST} ^www\.therailwire\.net$
RewriteRule ^(.*)$ "https\:\/\/www\.therailwire\.net\/forum" [L,R=301]

Thanks a bunch. I didn't notice it worked because Chrome seems to do some caching.
you're welcome. Caching is a bitch, that's why I always test in incognito mode...also, I do this for a living, so I have a ton of scripts stored...

tom mann

  • Administrator
  • Crew
  • *****
  • Posts: 10658
  • Representing The Railwire on The Railwire
    • http://www.chicagoswitching.com
Re: SSL change coming
« Reply #11 on: January 21, 2017, 12:50:27 PM »
So I'm gonna call this a success:  RW seems to be fine and my other sites are still working. 

Enjoy the new encryption everyone!

John

  • Administrator
  • Crew
  • *****
  • Posts: 10791
  • Gender: Male
Re: SSL change coming
« Reply #12 on: January 21, 2017, 01:01:01 PM »
So I'm gonna call this a success:  RW seems to be fine and my other sites are still working. 

Enjoy the new encryption everyone!

Lets add dark web access :scared:

peteski

  • Crew
  • *
  • Posts: 20979
  • Gender: Male
  • Honorary Resident Curmudgeon
    • Coming (not so) soon...
Re: SSL change coming
« Reply #13 on: January 21, 2017, 01:56:16 PM »
It was seamless for me too (I didn't even look at the URL until reading this thread just now).  What language are the above code examples in?
--- Peteski de Snarkski

-"Look at me, I'm satirical!!!"
-"Look at me, I'm anal retentive!!!"
-"Look at me, I have the most posts evahhhh!!!"
-"Look at me, I'm snarky!!!!"
-"Look at me, I have OCD!!!"
-"Look at me, I'm a curmudgeon!!!!"

svedblen

  • Crew
  • *
  • Posts: 542
  • Gender: Male
    • Three Yards Yard - beware - it is H0 - No, now it's O
Re: SSL change coming
« Reply #14 on: January 21, 2017, 02:25:58 PM »
No problem for me either. Except for the emojis:

Lennart