Say that I have a domain subdomain.domain.com, when I check the document.domain I’m getting the result subdomain.domain.com, what can I do to get only the original domain without the sub domain, for example: domain.com
Say that I have a domain subdomain.domain.com , when I check the document.domain I’m
Share
This will work for a
.comdomain in the example you specified, you would have to adjust the slice for.co.uk,.com.auand some other TLDs: