tags:

views:

25

answers:

1

Is it possible to do 301 redirect with Tomcat 5.5 running standalone, not behind IIS/Apache?

A: 

There isn't a way to set this up as easily as you're able to with Apache. The closest thing would be to make a servlet or jsp to handle the redirect and then map it to the URL you want to redirect from. In the servlet or jsp it would do something like:

response.setStatus(301);
response.setHeader("Location", "http://www.example.com/redirect-to-here.html" );
worpet