First remove the <IfModule mod_rewrite.c>
and the </IfModule>
and see if error 500 occurs, if it occurs it is because your server does not support the module, then solicte to the support that activates it.
Now let’s go to error, you used:
{REQUEST_URI}
When the correct is:
%{REQUEST_URI}
Thus remaining:
RewriteCond %{HTTPS} off
RewriteRule ^ https://www.pipocaplayfm.com.br%{REQUEST_URI} [R=301,L]
One suggestion I make is to do as I did in this reply /a/207031/3635, wear like this:
RewriteCond %{HTTPS} off
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Because if you change your domain name htaccess will still work.
If you want to add the www
also, if the user type without, then do so:
RewriteEngine On
# Redireciona para o HTTPS independente do domínio
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Adiciona www. no prefixo do domínio
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Rotas
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
Why the green lock still doesn’t appear?
This is because you have Resources, as images inside gives page on the HTTP protocol instead of HTTPS, so if you open the console you will see several messages like this:
Mixed Content: The page at 'https://www.pipocaplayfm.com.br/' was
loaded over HTTPS, but requested an insecure image 'http://www.pipocaplay
fm.com.br/assets/images/genres/sertanejo-universitario.jpg'. This content should
also be served over HTTPS.
That is, you have to fix the images, videos, music, Javascripts, css and etc for HTTPS as well.
See for example the icon is still in HTTP:
<link rel="icon" type="image/x-icon" href="http://www.pipocaplayfm.com.br/storage/branding_images/DyATnJFk03RxUUwDXcyyIjEGN1x81TMtlVUrtwfN.jpeg">
And your images too:
<div class="img-container">
<img class="lazy-loaded ng-lazyloaded" src="http://www.pipocaplayfm.com.br/assets/images/genres/velha-guarda.jpg">
</div>
To be truly safe everything has to use the HTTPS protocol.
Removes the
<IfModule mod_rewrite.c>
and the</IfModule>
and see if Error 500 occurs.– Guilherme Nascimento
I edited the answer, the reason the green lock does not appear this explained in "Why the green lock still doesn’t appear?"
– Guilherme Nascimento
Tell me why the lock stopped popping out of nowhere ?
– jhonatan santos
Stop appearing out of nowhere because the images use lazyload, ie only load after the full page is loaded, out which template is dynamic and not static, ie it is all loaded via ajax requests and DOM manipulation. As I said, the console shows the error "Mixed content", just press F12. If your page is HTTPS and you put an HTTP image inside it it breaks the security and therefore the lock disappears, because it is not safe.
– Guilherme Nascimento