Hello since it is not possible for my hosting provider to use the rewrite function via htaccess, I am looking for a way to use the silverstripe instead of http directly https.
I would be glad for any help
// Include any relevant code. If you have a lot of code, link to a gist instead.
SilverStripe requires mod_rewrite and makes use of it via .htaccess so you may need to switch hosting provider if you want to have a smooth ride with SS. That said, you can use Director::forceSSL() to redirect to https.
This is old but I had the same problem yesterday. The site was running in a Docker container behind Traefik. Traefik is rerouting to the https version, none of the routes worked.
The only thing that seemed to fix the https base_tag was adding this to /src/app/_config/app.yml
The code on the docker container would create the base tag based on the protocol the server is using. If the https request is being terminated at your proxy, then the application code would assume it was running non-https and create the base tag accordingly.
Iâm not especially familiar with Traefic, but it looks like it works the way a lot of proxies do. If you have installed an SSL certificate in the proxy, but not in the backend servers then the SSL is probably terminating in Traefic. That means the browser connection to the entry point is HTTPS, but the backend traffic from your servers to the proxy is HTTP (which is why youâre seeing what you are when looking at the backend machines).
Apologies for reviving an old thread, but it may be pertinent for people who find this in the future. A possible solution to the issue of proxies is detailed here: