If you write your script like so:
The browser will load with the correct protocol. This goes for images as well. Then if the user comes from http, it will load http, https if https.
- Mixed content error http vs https
- Symfony2 behind ELB is redirecting to http instead of https
- How to force https for prod but http for dev environment?
- Symfony router redirect to http on a https application
- content negotiation ("Accept" HTTP header) based routing in symfony2.0
- Symfony2 Form Validation Error Returning HTTP Code '200'
- Symfony + Mercure connection problems. Use HTTPS instead of HTTP
- In Symfony, how can I require http in a dev environment and https in production?
- Symfony Security Forces HTTPS Despite requires_channel http
- Symfony 3 redirects to http instead of https after login
- Symfony 3.0 Apache Http Error 404 And Http Error 500 response
- Security firewall logout path redirects to http instead of https protocol
- How can I login via HTTPS and still navigate on HTTP as logged?
- symfony2 http 403 error (access denied) for CSS file localhost?
- Error pages does not following content type/ format
- Why can't I access the response content when the Symfony HTTP Client encounters an error, and an exception is thrown instead?
- Why doesn't Symfony 2 output the error text of an HTTP exception?
- How to disable HTTPS or change to HTTP in dev and prod version on symfony?
- Symfony Routing and Mixed Content Errors
- HTTP 500 Error in Symfony 3
- Symfony2 gets HTTP 500 error on Ajax call
- HTTP 500 ERROR An exception occurred Symfony/EasyAdmin
- heroku this page isn’t working interfaceapp.herokuapp.com is currently unable to handle this request. HTTP ERROR 500
- Redirect http to https in .htaccess (Symfony 4)
- symfony 4: Request.getScheme() return http with X_FORWARDED_PROTO https
- HTTP 500 error with FOSRestBundle when getting an entity with relations
- How to get native php http 500 error pages in symfony2?
- symfony2 http 403 error (access denied) for CSS file
- Can you get Mink to follow redirect from https to http and keep the Session?
- Json endpoint circular reference handler HTTP 500 ERROR
More Query from same tag
- how to create a separate login page for easyadmin and client page in symfony 3
- Symfony 2 : Class "Entity\ClientClass" is not a valid entity or mapped super class
- Symfony server:run error
- Rename table name with Doctrine migrations
- How to render a template inside an EventListener?
- Dependency injection : Get Param in controller
- Every modification to class causes error 'Cannot declare class because the name is already in use'
- Mapping and DQL
- Doctrine 2 annotations, adding custom sql - spatial index
- Working with Subversive (SVN) and Symfony2. 'Vendor' folder don't upload
- How to use FOS UserId in other Entity
- Unable to Login with Symfony
- Base class controller with global twig service
- How to access doctrine database made by php from python
- Sonata Page Bundle - creating a page
- Merging frontend and backend for production
- symfony - call a controller-action within a twig extention
- Sonata User - Role security Access denied
- Return count in result with doctrine paginator
- Notice: Undefined index on SqlWalker.php
- Why my constraint validation works when declared on the form builder but got ignored when configured on my entity?
- Creating dynamic associative array in configuration
- FOS Elastica bundle populate command killed by oom_reaper with out of memory
- Doctrine ORM - How to choose the first selected item in select query
- PHP 'NumberFormatter' 'SPELLOUT' is not providing required format in english
- sub class of "" is not a valid entity or mapped super class
- Failed user login on symfony 3.4
- Symfony2 embedded Type collection duplicate on update
- Silex no error logging to server's error log
- Symfony validator does not validate post data