ORIGINAL URL = www.mycompany.com
NEW URL = www.myproduct.com
Create vhost for www.myproduct.com (pointing to ORIGINAL URL for folders (add CORS))
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.myproduct.com
DocumentRoot /home/sites/www.mycompany.com/
<Directory /home/sites/www.mycompany.com/>
Options FollowSymLinks MultiViews
AllowOverride All
</Directory>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
ErrorLog /home/logs/apache2/www.mycompany.com-error.log
CustomLog /home/logs/apache2/www.mycompany.com-access.log combined
LogLevel warn
</VirtualHost>
Modify www.company.com to add CORS (so new URL can pickup resources here)
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.mycompany.com
DocumentRoot /home/sites/www.mycompany.com/
<Directory /home/sites/www.mycompany.com/>
Options FollowSymLinks MultiViews
AllowOverride All
</Directory>
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
ErrorLog /home/logs/apache2/www.mycompany.com-error.log
CustomLog /home/logs/apache2/www.mycompany.com-access.log combined
LogLevel warn
</VirtualHost>
Install this wordpress plugin Multiple Domain Mapping on single site
https://fr.wordpress.org/plugins/multiple-domain-mapping-on-single-site/