The problem is if entered as www.subdomain.site.com it displays as insecure / can't display / trouble finding site. if entered with https://subdomain.site.com/ site loads fine. If enter as https://www.subdomain.site.com it won't load. I would appreciate any help correcting this:
Hi Michael Maybe I'm understanding this wrong but why would you want the site to open for both subdomain.site.com and www.subdomain.site.com as wouldn't that class a duplicate content? If you did want the site to open for www. however, would you not just ask your host to set that up for you?
Agree, but I want the rewrite rule to remove the WWW if it’s in a link or it’s typed in the address bar. If it is in the link or typed address, it’s a dead link / address. I hope that makes since, if not I’ll try rewording in the morning.
In the end I did the reverse. I checked with my host and there was no DNS A file for the www.sub.domain.com. So they created it and I went to force non-www to www.sub.domain.com (opposite of earlier) so that I wouldn't get a double content penalty. Below is working. Thanks for helping.
RewriteEngine on RewriteCond %{HTTP_HOST} ^pallet.mysite\.com [NC] RewriteRule ^(.*)$ https://www.pallet.mysite.com/$1 [R=301,L]