- Server operating system version
- ubuntu 22.04
- Plesk version and microupdate number
- Plesk Obsidian Web Host Edition 18.0.47
Hello guys,
I little help will do great.
Issue:
blog.domain.com --> www.blog.domain.com= Google stays happy
- I have migrated a web with a subdomain www.blog.domain.com to plesk.
- Created an FTP folder for blog.domain.com (with no www).
- In DNS on Cloudflare pointed to it via records: A record "www.blog" to IP; A record "blog" to IP; CNAM "www" to @; wildcard * A record to @.
- In the database the home URL is set as https://blog.domain.com (used to be with "www", but now does not resolve if used "www")
- SSL certificate is installed via Let's encrypt in Plesk (Cloudflare Free does not support 3rd level subdomains like "www.blog")
Issue 1: Non-www subdomain is working OK. www.blog is not working ("Site can't provide secure connection - ERR_SSL_VERSION_OR_CIPHER_MISMATCH").
Issue 2: Redirection to WWW is not working, when editing .htaccess file of the subdomain. I cannot even do the vice versa, redirect the non-www to www.
Used redirection in subdomain folder:
RewriteCond %{HTTP_HOST} !^blog\.domain\.cz$ [NC]
RewriteRule ^(.*)$ https://blog.domain.cz/$1 [R=301,L]
The subdomain is under the main domain, so it has no option to set preferred display with or without "www" in plesk. Kindda confused with all the redirections, SSLs and crazy things. Why make it simple, if it can be complex.
Thanks for any idea.
Regards
Martin
I little help will do great.
Issue:
blog.domain.com --> www.blog.domain.com= Google stays happy
- I have migrated a web with a subdomain www.blog.domain.com to plesk.
- Created an FTP folder for blog.domain.com (with no www).
- In DNS on Cloudflare pointed to it via records: A record "www.blog" to IP; A record "blog" to IP; CNAM "www" to @; wildcard * A record to @.
- In the database the home URL is set as https://blog.domain.com (used to be with "www", but now does not resolve if used "www")
- SSL certificate is installed via Let's encrypt in Plesk (Cloudflare Free does not support 3rd level subdomains like "www.blog")
Issue 1: Non-www subdomain is working OK. www.blog is not working ("Site can't provide secure connection - ERR_SSL_VERSION_OR_CIPHER_MISMATCH").
Issue 2: Redirection to WWW is not working, when editing .htaccess file of the subdomain. I cannot even do the vice versa, redirect the non-www to www.
Used redirection in subdomain folder:
RewriteCond %{HTTP_HOST} !^blog\.domain\.cz$ [NC]
RewriteRule ^(.*)$ https://blog.domain.cz/$1 [R=301,L]
The subdomain is under the main domain, so it has no option to set preferred display with or without "www" in plesk. Kindda confused with all the redirections, SSLs and crazy things. Why make it simple, if it can be complex.
Thanks for any idea.
Regards
Martin