How to config Apache2 to redirect URL?

You could use the RedirectMatch directive to force Apache to send the user someplace else: RedirectMatch 301 ^(.*)$ anotherserver.com$1 See the following: httpd.apache.org/docs/2.2/mod/mod_alias.... en.wikipedia.org/wiki/URL_redirection#HT....

Thanks for your answer. However, this is not exactly what I need. Redirect does a browser redirect and the newly directed URL will be displayed in the browser.

What I need is a way that only the contents of the new URL myanohterhost/jmx-console is displayed. The URL in the browser still displays https:// myhost/configuration/jmx-console – Kevin Zhang Jan 4 at 17:43 1 Not so. You merely copied your comment to the other poster.

I tried this on my server just now and it works like a charm. – Brian Lacy Jan 6 at 21:37.

The normal way to do this would be the following, in the configuration of the current server (or virtual host) `myhost': Redirect /configuration/jmx-console myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console Edit: According to your comment, it looks like you can do it using one of the following techniques: 1. Mod_proxy, using a reverse proxy setup Simply map the remote server's urls to a local url: ProxyPass /configuration/jmx-console myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console ProxyPassReverse /configuration/jmx-console myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console 2. Mod_rewrite using the proxy throughput feature RewriteRule ^configuration/jmx-console(.*)$ myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console" rel="nofollow">myanohterhost/jmx-console$1 P There can be some caveats in using reverse proxying like this, I recommend you to read thoroughly http://httpd.apache.org/docs/2.2/en/mod/mod_proxy.html to see the various options available when using reverse proxying.

Thanks for your answer. However, this is not exactly what I need. Redirect does a browser redirect and the newly directed URL will be displayed in the browser.

What I need is a way that only the contents of the new URL myanohterhost/jmx-console is displayed. The URL in the browser still displays https:// myhost/configuration/jmx-console. – Kevin Zhang Jan 4 at 17:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions