Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite help

using mod_rewrite to redirect requests to tomcat java

         

moftary

11:02 am on Mar 13, 2005 (gmt 0)

10+ Year Member



Greetings,

I need to redirect every request to www.<domain>.com/<directory>/ to www.<domain>.com:9080 recursivley. I have made <directory> in apache root and placed the following .htaccess file but that was not enough.


RewriteEngine On
RewriteRule ^(.*) http://www.<domain>.com:9080/$1 [R,L]

Thanks in advance

Cheers,
mOftary

jdMorgan

1:44 pm on Mar 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



moftary,

Since the scope of your question is beyond Apache itself, perhaps this thread [webmasterworld.com] or others in this search [google.com] will be helpful to you.

We also have the Website Technology forum [webmasterworld.com] which may be a better place to discuss subjects involving more than just Apache.

Jim