<% String url = request.getRequestURL().toString(); String queryStr = request.getQueryString()!=null ? "/?"+request.getQueryString() : ""; /* if(url!=null && !url.startsWith("http://localhost:8080") && !url.startsWith("http://web147.revolveclothing.com")){ try { if(session.getAttribute("firstPageRedirect")==null){ session.setAttribute("firstPageRedirect","1"); } if(session.getAttribute("firstPageRedirect").equals("1")){ session.setAttribute("firstPageRedirect","0"); response.setStatus(301); response.setHeader( "Location", "http://www.revolveclothing.com"+queryStr); response.setHeader( "Connection", "close" ); } } catch (Exception e) { e.printStackTrace(); } }*/ %>