File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirect to /folder with domain name.

 
Chris Royce
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I've looked around but can't find any guides (I understand) that help me on this...

I have tomcat 5.5 running my app (a war file placed in the webapp folder)

www.myDomain.com/myApp

However I'd like it such that www.myDomain.com goes straight to the myApp folder (hidden if possible). eg..

www.myDomain.com ---MAPS_TO----> www.myDomain.com/myApp

without anyone seeing this?

Possible?

tomcat/.htaccess?

Thanks for ANY pointers

Chris
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chris Royce wrote:
www.myDomain.com ---MAPS_TO----> www.myDomain.com/myApp

Edit the index.html/jsp page in the ROOT directory in webapps. Add the jsp:forward tag to redirect the request for domain "/" to the "myApp".

And I thought, you might find this useful
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic