File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat based redirection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat based redirection" Watch "Tomcat based redirection" New topic
Author

Tomcat based redirection

Lee Fei Tye
Greenhorn

Joined: Nov 26, 2008
Posts: 12
Hi,

I have 2 Domain name pointing to the same server.

How can i redirect the first domain name to resolve it to a sub directory of the second domain?

I tried using .htaccess with no luck.

Cheers.
~Nick
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41112
    
  45
I think the Apache module called mod_rewrite should be able to do this.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat based redirection
 
Similar Threads
Lookup Domain Name
single tomcat server multiple domain names
Calling IIS web page from java (that is deployed in Weblogic) using Windows security
Confugure Tomcat To Host a Server
How Tomcat Works book - development question