Author Topic: SSL change coming  (Read 4129 times)

0 Members and 1 Guest are viewing this topic.

tom mann

  • Administrator
  • Crew
  • *****
  • Posts: 10916
  • 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: 10916
  • 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: 1710
    • 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: 1710
    • 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: 10916
  • 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: 4500
  • Gender: Male
  • Will rim for upvotes.
    • Facebook Profile
Re: SSL change coming
« Reply #5 on: January 21, 2017, 11:29:49 AM »
Thanks, Obama!
Josh Surkosky

Here's a Clerihew about Ed. K.

Ed Kapucinski
Every night, he plants a new tree.
But mention his law
and you've pulled your last straw!

Alternate version:
Ed Kapucinski
Every night, he plants a new tree.
He asks excitedly "Did you say Ménage à Trois?"
No, I said "Ed's Law."

C855B

  • Crew
  • *
  • Posts: 10674
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://.

johnb

  • Crew
  • *
  • Posts: 1710
    • 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: 10916
  • 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: 10916
  • 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: 1710
    • 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: 10916
  • 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: 13163
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: 31842
  • 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?
. . . 42 . . .

svedblen

  • Crew
  • *
  • Posts: 644
  • 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:

« Last Edit: September 21, 2022, 12:45:02 PM by svedblen »
Lennart