I have a website with front end coded in HTML5 + javascript + jquery and backend in PHP.
I have a domain
example.com
and a subdomain
a.example.com
On the browser i redirect example.com to a.example.com. Now i want that even if a.example.com is shown to the user, the address bar should show example.com as the domain which is opened.
How do i do this? Is there a way to spoof the real url and show another url to the user if they belong to the same main domain name?
Thanks