JSP Java Server Pages 301 RedirectsCreating search engine friendly 301 redirects as part of your SEO initiatives is a great tip to keep under your belt. If your website runs as Java Server Pages (JSP), generating the redirect from the source code is probably your easiest and most efficient solution. Search engines interpret the 301 code as meaning "moved permanently". In turn, PageRank/trust is passed from the old page to the new. Example Code
<%
response.setStatus(301); response.setHeader("Location", "http://www.new-domain.com/or-page.html"); response.setHeader("connection", "close"); %> This code should be placed before other data is sent to the browser. blog comments powered by Disqus |
FriendsLatest from the Blog |



ShareThis
