It's possible to create a rewrite rule matching domain URL without a plugin

Hi @Leobel_Izquierdo, welcome to the community.

Are you interested in getting the domain name / host or the full path (including the domain name)?

If it is the hostname then you could get it from the host header.