Here is my problem.
Say I have a domain bestwebsite.com but I want all traffic to redirect to the.bestwebsite.com, even from the root domain. This is the company name.
I have set up one subscription for bestwebsite.com with a wildcard SSL certificate.
I can make bestwebsite.com redirect to the.bestwebsite.com using the following .htaccess file...
...but my site is hosted in a subscription for bestwebsite.com so the.bestwebsite.com is not found and redirection from anything other than the root domain does nothing
BTW - bestwebsite.com is not my real domain
I'm using Plesk Obsidian on a VPS from IONOS but I have access to the DNS settings and file system.
Say I have a domain bestwebsite.com but I want all traffic to redirect to the.bestwebsite.com, even from the root domain. This is the company name.
I have set up one subscription for bestwebsite.com with a wildcard SSL certificate.
I can make bestwebsite.com redirect to the.bestwebsite.com using the following .htaccess file...
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^the\.bestwebsite\.com$ [NC]
RewriteRule ^(.*)$ https://the.bestwebsite.com/$1 [R=301,L]
...but my site is hosted in a subscription for bestwebsite.com so the.bestwebsite.com is not found and redirection from anything other than the root domain does nothing
BTW - bestwebsite.com is not my real domain
I'm using Plesk Obsidian on a VPS from IONOS but I have access to the DNS settings and file system.