Reputation: 105
I have an URL that redirects to another. (Both sites are hosted by myself)
How can I mask the final URL to show the first one?
Upvotes: 1
Views: 92
Reputation: 2843
The easy answer: You cannot. The browser (or any script accessing the content at that given URL) shows the user where the data is coming from - and that's the redirection target, since that's where the data is coming from.
The complx answer: You can. However this required quite a bit of work. The server internally has to fetch the data for the redirection target and forward it to the client. However strictly speaking this isn't a redirect any more that you can perform using a .htacess configuration.
Upvotes: 1