Need help with 301 https redirection
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!
RewriteCond %{HTTP_HOST} ^www.mysite.com [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]After AUTOSLL LETS ENCRIPTED, I Have:
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]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)?:
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]BESIDES of this, in joomla server configuration I force SSL use "Is this another duplication? Thanks!
-
Are you trying to manually add this or are you using the Redirects area of your cPanel? 0
Please sign in to leave a comment.
Comments
1 comment