Hello. I have upgrade my WHM/CPANEL with AutoSSL and Lets encripted features. I have several cpanel accounts with joomla installations, and I do not know how to setup 301 redirections for google seo good practices.
Before, I had this htaccess redirection for www to non-www:
After AUTOSLL LETS ENCRIPTED, I Have:
NOW, I Need to setup redirections 301 for google search links, http-non-www to https-non-www
This is a combination of rules.
Is correct in this way (duplicate)?:
BESIDES of this, in joomla server configuration I force SSL use ¿Is this another duplication?
Thanks!
Before, I had this htaccess redirection for www to non-www:
Code:
RewriteCond %{HTTP_HOST} ^www.mysite.com [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]
Code:
RewriteCond %{HTTP_HOST} ^www.mysite.com [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]
This is a combination of rules.
Is correct in this way (duplicate)?:
Code:
RewriteCond %{HTTP_HOST} ^www.mysite.com [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^(.*)$ https://mysite.com/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^mysite.com [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule ^(.*)$ https://mysite.com/$1 [L,R=301]
Thanks!