• Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I redirect adres like this: http://localhost:8080/xxxx to http://localhost:8080/ ?  RSS feed

 
Mar Kozikowski
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I have a problem. I have installed a tomcat with a simple webpage (index.html) located in a folder "webapps". I can see my page when i write the adres "http://localhost:8080/" into my browser. Unfortunatelly, when i write something after http://localhost:8080/, for example http://localhost:8080/do.do, i can`t see my page. How can I redirect adres like this: http://localhost:8080/xxxx to http://localhost:8080/ ?
Any guides will be helpfull!
 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Though discouraged, you could globally configure a filter that would re-direct all your requests. Have a look in the Tomcat's conf directory and you will find a web.xml where you could add your redirect filter!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!