301 « Redirect « JSP-Servlet Q&A





1. 301 Redirects in JSP    stackoverflow.com

I am using 301 redirect to redirect my old website pages to the new site. The code for it as follows:

<%
response.setStatus(301);
response.setHeader( "Location", "http://my_new_website/page.html" );
response.setHeader( "Connection", "close" );
%>
So, whenever user reaches the old ...

2. Server side redirect (301) - JSP :: How to set time delay before page redirect using    coderanch.com

Hello Friends, I want to show one page for 5 seconds and after that i want to redirect the page to another URL. Got the code snippet for 301 redirection in JSP . <% response.setStatus(301); response.setHeader( "Location", "http://www.new-url.com/" ); response.setHeader( "Connection", "close" ); %> Please let me know how to set the time delay. Is there any way to set the ...

3. Locale wise 301 redirect in jsp    coderanch.com