I have a apache web server running on my HP EX485 at port 80. There are other servers running on other ports like 8080, 8090 , 8089... I want to redirect from apache based on the directory requested to one of these services..
[
mysite.com...] redirect to [
mysite.com:8080...]
[
mysite.com...] redirect to [
mysite.com:8089...]
[
mysite.com...] redirect to [
mysite.com:8090...]
example for /games, I have the rewriterule setup as follows in the .htacces file in /games directory.
# now the rewriting rules
RewriteRule ^(.*)$ [
%{HTTP_HOST}:8090...] [R=301]
The rewrite happens in browser correctly but the browser url changes to
[
mysite.com:8090...] and I do not want that )
any help would be appreciated. Thanks