Tuesday September 10, 2002
Bad Search Engine URLs. As I learned in the last session I attended today, this site has bad search engine URLs. For instance, I used to have my entry page (home.jsp) defined as:
<%
response.sendRedirect("page/rd");
%>
The problem with this is that the search engine sees the redirect and goes, uh oh, a redirect - that's bad, and may fail to index your site. Check out what a search engine sees via Rex Swain's HTTP Viewer. So I changed it to use a little JSTL:
<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<c:import url="http://www.raibledesigns.com/page/rd"/>
I've found this to be a little better as this site shows up as http://www.raibledesigns.com/home.jsp rather than http://www.raibledesigns.com/page/rd. However, it still doesn't seem to work well with the HTTP Viewer I referred to above. When I type http://www.raibledesigns.com into it, Tomcat returns an HTTP 302 error saying "this page has temporarily moved to http://.../home.jsp - so I think Tomcat might need to work on it's <welcome-file-list> to just forward directly to the page. If anyone has any other solutions, please let me know.
Pop Quiz: What's the easiest way to get "http://www.raibledesigns.com" into my c:import tag? request.getSchema() + request.getServerName?
Posted in The Web
at Sep 10 2002, 03:15:07 PM MDT
1 Comment
Search This Site
Recent Entries
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward
- PhoneGap for Hybrid App Development
Posted by Michael Jack on November 02, 2003 at 06:56 PM MST #