• Post Reply Bookmark Topic Watch Topic
  • New Topic

linking a url to my context

 
ozkan gumus
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all , i have my tomcat and a url linkin me to my app.
http://<ip>:<port>/abc/ this sends me to index page of my context . but i want also that
http://<ip>:<port>/abcdf/ links me also to the index page of my context abc .
how to do that ?

thanks
[ September 07, 2007: Message edited by: ozkan gumus ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"abcde" is a different context than "abc", so you need to have a second web app (named "abcde"). At its root you can put an HTML file that does nothing but redirect to "abc".

If you're talking about capturing all URLs starting with "abc" (i.e., "abc*"), that's not possible. In that case you'd be better off with an error page for the root context that captures 404 errors. In that page, you can check whether the URL accessed was of the form "abc*", and then redirect to "abc".
 
ozkan gumus
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your idea.

under the ROOT i placed that :
abcde.html

<HTML>
<HEAD>
<META HTTP-EQUIV="refresh" CONTENT="3;URL=http://<ip>:<port>/abc">
</HEAD>

<body>
<td>
<center>
.....
</center>
</td>
</body>

</HTML>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!