RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
@Jon, yes the documentation can sometimes be hard to follow. The information you provided is although already in our documentation, albeit you would have to track it down in a few clicks.
1) https://cloud.google.com/storage/docs/hosting-static-website
2) Read the Caution notice about HTTP/HTTPS, which brings you here:
https://cloud.google.com/storage/docs/troubleshooting#https
3) Follow the link to the troubleshooting which would direct you to how to serve HTTPS, which provide the solution of using Firebase hosting:
https://firebase.google.com/docs/hosting/
Let us know how we can make improvements to our documentation regarding the above documentation, any feedback will be redirected to the appropriate team to review.
@John, Can you confirm exactly what would be required as a functionality? Are you referencing to the redirection of HTTP to HTTPS when hosting a static website hosted in Google Cloud Storage __without the need of using a Load Balancer and a CDN__?
Deploying: stage: deploy only: - master script: - yarn run generate - yarn add firebase-tools - echo "Show files to deploy:" - ls -al dist/ - ls -al dist/_nuxt/ - npx firebase deploy --token $FIREBASE_TOKEN
Hello Jon,
Thank you for all the input. It is indeed valuable for us and the community. On that front, and for suggestions to improve our products, please do not hesitate to create feature requests per this guide, and we will be happy to forward it to the appropriate team. As for the redirect issue, I believe there is already this report (feature request) that you can up-vote (click Me too).