Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
My domain is: relatospulp.com
I ran this command:
It produced this output:
My web server is (include version): LAMP
The operating system my web server runs on is (include version): CENTOS 7
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No, I don´t use a control panel
I have installed Lets ecripted certificates for my websites with Apaceh Cerbot, and I have elected second option “always force SSL”. I understand that on this way, all http conections (port 80) are redirected to https version of my webs (port 443)
The problem is I have also a redirection on my Joomla installation for “non www” to “www” urls, across htaccess file. Therefore, there are two kinds of redirecions on the table: http > https / non www > www
My system works ok (a bit slow maybe, for not good server configuration), but google test pagespeed alert me about many redirections in use:
If I type my url: relatospulp.com, I achive this sequence:
http://relatospulp.com/ >> https://relatospulp.com/ >> https://www.relatospulp.com/
How can I setup up my redirections of a simple way with lets encripted?
I have this code inserted by Lets encrypt on VirtualHost (Port 80): (FIRST REDIRECTION for HTTP > HTTPS)
RewriteCond %{SERVER_NAME} =www.relatospulp.com [OR]
RewriteCond %{SERVER_NAME} =relatospulp.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
An I have this code on my HTACCESS: (Second redirection, for non www to www urls):
RewriteCond %{HTTP_HOST} ^relatospulp.com [NC]
RewriteRule ^(.*)$ https://www.relatospulp.com/$1 [L,R=301]
Thanks