Priscila Freitas Posted November 11, 2021 Share Posted November 11, 2021 Olá, Estou forçando o https em um site que foi construído em cms próprio, porém não estou conseguindo aplicar nas imagens do site para que elas apareçam. O site é unfercontabilidade.com.br e no momento mantive o arquivo htaccess sem o forçamento do ssl para não "assustar" o cliente rsrs - Como fiz o forçamento do ssl? Adicionei essas duas linhas após RewriteEngine on: RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] - Como ficou depois de adicionar? RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_HOST} ^unfercontabilidade.com.br [NC] RewriteRule ^(.*) http://www.unfercontabilidade.com.br/$1 [L,R=301] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] .htaccess 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now