I have two apache servers.

Website URL: demo-site1.abc.local

Website URL:

I want to redirect all traffic which comes to "demo-site1.abc.local"[] to the website at the url:

I have read some articles, and found that it can be possible with the mod_rewrite module. I inserted it in my httpd.conf. Here it is:

<VirtualHost *:80>
ServerAdmin root@server.hector.com
ServerName demo-site1.abc.local
RewriteEngine on
RewriteRule /.* [R]

This works. But redirection changes the url as well. I mean whenever i enter "demo-site1.abc.local" in address bar of browser, it redirects to url "". It means url changes as well. But i don't want the user to know that my website "demo-site1.abc.local" is pointing to "".

After googling a lot, i didn't find the solution. So i moved to another solution which says that i need to configure Reverse proxy in my Apache server. So i did the same. Have a look at my httpd.conf:

<VirtualHost *:80>
ServerAdmin root@server.hector.com
ServerName demo-site1.abc.local
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
ProxyPass /
ProxyPassReverse /

This is what i was looking for so long time. It actually forwards website "demo-site1.abc.local" to "". Which means only forwarding is working and url doesn't changes.

But the only problem i am still facing is that the webpage and other links are not displaying properly[do not load]. Below is the output of 'Firebug' tool which shows whats going on background of the webpage.

GET demo-site1.abc.local 200 OK demo-site1.abc.local 24 KB
GET jquery-1.5.2.min.js 200 OK code.jquery.com 29.2 KB
GET screen.css;jsessio...BF90F1621156207653 404 Not Found demo-site1.abc.local 0
GET custom.css;jsessio...BF90F1621156207653 404 Not Found demo-site1.abc.local 0
GET 1024.css;jsessioni...BF90F1621156207653 404 Not Found demo-site1.abc.local 0
GET 900.css;jsessionid...BF90F1621156207653 404 Not Found demo-site1.abc.local 0

What do you think what is the problem ?