I have 2 domains, both on the same server. One of them is running a website. I have a subpage of that website that I want to map the other domain to. The goal is to have the domain www.something.com "invisibly" map to www.somethingelse.com/example.html.
I have achieved quite good success with the following configuration:
ProxyPass / http://www.somethingelse.com/example.html
ProxyPassReverse / www.somethingelse.com/
This seems to work well. However there is one issue, that I do not completely understand. While the initial HTML is loaded properly, source files are not. So for example:
- www.something.com -> loads html from http://www.somethingelse.com/example.html
- www.something.com/style.css -> fails to load
I would say the problem is that everything is being redirected to http://www.somethingelse.com/example.html
? So for example www.something.com/style.css
would become http://www.somethingelse.com/example.html/style.css
?
How would I fix this?