Prepare Symfony2 assets_base_urls for HTTPS
If you just switched your Symfony2 based site to HTTPS and you are missing „base url” for assets in your templates you need to fix framework configuration to handle HTTPS assets
HTTP only version
framework:
templating:
assets_base_urls: [ /assets ]
HTTP + HTTPS version
framework:
templating:
assets_base_urls:
http: [ /assets ]
ssl: [ /assets ]
Written by Tomasz Sobczak
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Symfony2
Authors
Related Tags
#symfony2
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#