• Post Reply Bookmark Topic Watch Topic
  • New Topic

need to redirect based on URL  RSS feed

 
Didier McGillis
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a small problem I need to make sure the URL says http://www.domain.com/directory/index.jsp yet there are the occasions where someone types http://www.domain.com/directory/ doesnt say index.jsp and it throws an error. so I need to bandaid the index.jsp to redirect to itself if it finds that the URL string doesnt have index.jsp in there
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Set up your welcome-file-list and add index.jsp to it.

If you meant that you need "index.jsp" to be at the end of your URL, then create another jsp that redirects to index.jsp and add that one to the welcome file list.
 
Didier McGillis
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh geez, time for me to go home sick.

thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!