We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
SSl Works only for non www
SSl Works only for non www
Hi There
I use Let's Encypt to make http://domian.com as https and added
{
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domian\.com [NC]
RewriteRule ^(.*)$ https://domian.com/$1 [L,R=301]
}
to htaccess.
I tried to redirect https://www.domian.com to https://domian.com, but without success. However, http://www.domian.com (without ssl protocol) redirects to https://bidbarg.com. Can you do me a favor and help me on this isuue?
I face this problem only in firefox and IE, however in chrome it works.
I use Let's Encypt to make http://domian.com as https and added
{
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domian\.com [NC]
RewriteRule ^(.*)$ https://domian.com/$1 [L,R=301]
}
to htaccess.
I tried to redirect https://www.domian.com to https://domian.com, but without success. However, http://www.domian.com (without ssl protocol) redirects to https://bidbarg.com. Can you do me a favor and help me on this isuue?
I face this problem only in firefox and IE, however in chrome it works.
Re: SSl Works only for non www
Try
Certificate must cover both www and non-www https. Some provider's certs cover both for www.domain.com, but only one for domain.com.
Code: Select all
RewriteCond %{SERVER_PORT} 443
RewriteCond %{HTTP_HOST} ^www[.].+$
RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]
Re: SSl Works only for non www
If not a single domain. If the domain is connected, the aliases will be forwarded to https,Code: Select all
RewriteRule ^(.*)$ https://domain.com/$1 [L,R=301]
then you need so
Code: Select all
# redirect to https site
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L]
# redirect to www site
RewriteCond %{HTTP_HOST} ^(.*)$ [NC]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [L,R=301]
Re: SSl Works only for non www
Thank you for Answering
but this Certificate only for non-www !
https://bidbarg.com/
https://www.bidbarg.com/
but this Certificate only for non-www !
https://bidbarg.com/
https://www.bidbarg.com/
Re: SSl Works only for non www
I changed Https to HttpMr.Erbutw wrote:
the site only works fine on http://www.bidbarg.com but without bidbarg.com not displayed normally