Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to https #115

Closed
sulf1ron opened this issue Oct 14, 2017 · 8 comments
Closed

Switch to https #115

sulf1ron opened this issue Oct 14, 2017 · 8 comments

Comments

@sulf1ron
Copy link

sulf1ron commented Oct 14, 2017

  • flagrow/upload extension version: latest
  • flarum version: latest
  • Upload adapter causing issues: local

I used to use HTTP, and now I switched to https.
But the thumb is displayed using HTTP.
Is it a problem already existing?
Or is it because the switching from http to https?
Thanks.

@luceos
Copy link
Contributor

luceos commented Oct 14, 2017

Or is it because the switching from http to https?

Yes.

Solution: rewrite requests to your forum to https using htaccess or webserver configuration.

I can't suggest any other solution because you haven't specified the extension version you are on.

@sulf1ron
Copy link
Author

I wrote "latest" inside <> and it didn't display.
I use the latest version of both flagrow/upload and flarum.

@luceos
Copy link
Contributor

luceos commented Oct 16, 2017

What latest of upload? Because there's version 0.5.7 and 0.6.0-beta; they make a world of a difference..

Please take a little time to write down the specifications we seek, all these questions hence and forth only take way time we could spent on actually writing extensions.

@sulf1ron
Copy link
Author

Sorry for that.
I use version 0.5.7
You can find an example at https://japari.club/d/61-friends
Thumbnails are displayed using http but not https.

@luceos
Copy link
Contributor

luceos commented Oct 17, 2017

Warning, this is untested, make a backup before you run this query on your production database!!

UPDATE posts SET content = replace(content, 'http://japari.club/','https://japari.club/');

Run this on the Flarum database.

Inspiration by https://blog.templatetoaster.com/update-old-urls-in-database/

@sulf1ron
Copy link
Author

I‘ll tell you the result after backup and try.

@sulf1ron
Copy link
Author

Success!
Maybe it can be added to the next version?

@luceos
Copy link
Contributor

luceos commented Oct 17, 2017

Well.. no. You decided to switch to https. The extension has no influence over the URL you use. I'll consider this for a FAQ though.

Good thing it worked!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants