So here is the situation:
I have a domain, a.com registered on host1.com
I have a domain, b.com registered on host2.com and a Wordpress website on this domain, hosted in the same hosting(host2.com).
I forwarded a.com domain to b.com using the domain forwarding service of host1.com.
Now when I type a.com in my URL bar in my browser, I see the wordpress website from host2.com but because I masked a.com I still see a.com in my URL bar. So far so good and this is exactly what I wanted to do.
Here begins the problem:
All internal links in my wordpress website are still linked to b.com.
For example if I click a post, the link is b.com/posts?id=4
and the URL bar shows just a.com even when I go to that specific post and no matter to what page or post I click, the URL bar shows a.com.
What I want to achieve is to show a.com/posts?id=2
or any other url pattern but with the a.com as prefix.
I know it's a little bad explained but I really need your help and would be happy to clarify any questions you had to fix this problem. Thanks