Closed DivineOmega closed 6 years ago
I think this should be done by the web server handling the requests, this is why this isn't an issue on sites deployed through Laravel Forge, NGINX is setup to redirect requests through HTTPS.
@AlexCatch I do believe that you manually have to add or request a certificate on forge though. Then it'll set up 101
s or redirecting back to https
(don't think it looks in the ENV for APP_ENV=PROD
). All hail NGINX.
@DivineOmega
www.
affects SEO. Got any supporting articles?prod
either way as it hides error messages away from the client.@dextermb Hopefully most search engine are smart enough to handle this now, but these is still general advice around not duplicating site content on subdomains.
https://searchengineland.com/canonical-chaos-doubling-duplicate-content-264078 (from 2016)
Regarding prod
in production, I agree this should definitely be set.
I'd like to suggest functionality to do this following.
www.
which will prevent SEO duplicate content issues on publicly accessible sites, and mitigate multiple sets of cookies on all systems.APP_ENV
is set toprod
.I've previously written middleware to handle this, which I'd be happy to integrate if people want this functionality.
@dextermb @AlexCatch @wheatleyjj