[ https://issues.apache.org/jira/browse/OFBIZ-4390?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162213#comment-13162213 ] Jacques Le Roux edited comment on OFBIZ-4390 at 12/22/14 10:57 AM: ------------------------------------------------------------------- Thanks Jacques. Here is what I found. It doesn't always work, even for trunk: http://demo-trunk-ofbiz.apache.org/ecommerce/product/ (works) http://demo-trunk-ofbiz.apache.org/ecommerce/products/ (java.lang.NullPointerException) SEO-friendly URL (with error) http://demo-trunk-ofbiz.apache.org/ecommerce/dropship1-dropShip1-p-ERR (works) However, if you access the products (or a Bot) using the NON-SEO friendly URL: http://demo-trunk-ofbiz.apache.org/ecommerce/products/dropShip/dropShip1 (NON-SEO) NOTE: This URL is MOST likely present in Google and other search engines. http://demo-trunk-ofbiz.apache.org/ecommerce/products/dropShip/dropShip1-err Doesn't work: Says catalog not found, but the logs show http status 200. This is worse on 11.04, because it doesn't have the recent SEO-friendly changes recently made to trunk This is still a problem for trunk, because search engines will most likely have the OLD URL scheme, and will still get http status 200. was (Author: mz4wheeler): Thanks Jacques. Here is what I found. It doesn't always work, even for trunk: http://demo-trunk.ofbiz.apache.org/ecommerce/product/ (works) http://demo-trunk.ofbiz.apache.org/ecommerce/products/ (java.lang.NullPointerException) SEO-friendly URL (with error) http://demo-trunk.ofbiz.apache.org/ecommerce/dropship1-dropShip1-p-ERR (works) However, if you access the products (or a Bot) using the NON-SEO friendly URL: http://demo-trunk.ofbiz.apache.org/ecommerce/products/dropShip/dropShip1 (NON-SEO) NOTE: This URL is MOST likely present in Google and other search engines. http://demo-trunk.ofbiz.apache.org/ecommerce/products/dropShip/dropShip1-err Doesn't work: Says catalog not found, but the logs show http status 200. This is worse on 11.04, because it doesn't have the recent SEO-friendly changes recently made to trunk This is still a problem for trunk, because search engines will most likely have the OLD URL scheme, and will still get http status 200. > Ecommerce Error Page Does Not Work > ---------------------------------- > > Key: OFBIZ-4390 > URL: https://issues.apache.org/jira/browse/OFBIZ-4390 > Project: OFBiz > Issue Type: Bug > Components: specialpurpose/ecommerce > Reporter: Sam Hamilton > Assignee: Jacques Le Roux > Priority: Minor > Attachments: OFBIZ-4390-error.txt, OFBIZ-4390.patch > > > If you are using the ecommerce app and you force it to generate a 404 error page it redirects back to /control/main. > You can test the 404 error out here - http://demo-trunk.ofbiz.apache.org/ecommerce/please-give-me-an-error/ > This default behaviour will confuse search engines as they expect to get a 404 error if a pages does not exist on a website. > As pointed out by Bilgin on the mailing list adding the following code into web.xml should resolve the problem however it just generates more errors due to the redirect to /control/main is in place. > <error-page> > <error-code>404</error-code> > <location>/error/error.jsp</location> > </error-page> -- This message was sent by Atlassian JIRA (v6.3.4#6332) |
Free forum by Nabble | Edit this page |