[ https://issues.apache.org/jira/browse/OFBIZ-5312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13795022#comment-13795022 ]
Parimal Gain commented on OFBIZ-5312: ------------------------------------- Hi Paul, I have used the patch as is to test the behavior and use of various classes and configuration and didn't configure anything, anywhere beyond the patch. As I am not aware of the architecture of the functionality so these output(mentioned in above comment) are from your as is patch. If you see the comment, I have asked for the architecture and pattern to use this patch for various urls. As I understand the SEO concept of urls till now, the user friendly url creation and implementation with respect to SEO will be achieved if I can achieve following things - 1. Removal of /control out of all the url’s 2. SEO-friendly URLS as: a. URL for home page: http://www.abcde.com/ b. URL for category page level 1: http://www.abcde.com/footwear where footwear is the name of category c. URL for category page level 2: http://www.abcde.com/footwear/men where footwear is the name of level 1 category and men is the name of level 2 category d. URL for category page level 3: http://www.abcde.com/footwear/men/shirts where footwear is the name of level 1 category, men is the name of level 2 category & shirts is the name of level 3 category e. URL for product page: http://www.abcde.com/steelcraft-stainless-steel-bliss-thali-set-1032499 OR http://www.abcde.com/steelcraft-stainless-steel-bliss-thali-set where steelcraft stainless steel bliss thali set is the name of product and 1032499 is the product id f. URL for search page: http://www.abcde.com/search/rice-cooker where rice cooker is the keyword searched. 3. Configurable product/category and other URLs 4. Frontpage mapping from /main to / 5. Use only lowercase alphanumeric characters (abc123). 6. Replace spaces, underscores and other word separators with hyphens (-). 7. Remove all special characters, including trademark symbols, exclamation points, and apostrophes. 8. Remove all encoding that represents special characters, such as %20, %2C. Please help me to test this behavior/pattern by explaining the architecture of functionality implemented and how this patch should be used to achieve this and also please validate me if I missed out something or I'm wrong in any point. > Proposal: URL-Generation Changes > -------------------------------- > > Key: OFBIZ-5312 > URL: https://issues.apache.org/jira/browse/OFBIZ-5312 > Project: OFBiz > Issue Type: New Feature > Components: specialpurpose/ecommerce > Affects Versions: SVN trunk > Reporter: Jacques Le Roux > Assignee: Jacques Le Roux > Priority: Minor > Labels: changes, ecommerce, friendly, seo, url > Fix For: SVN trunk > > Attachments: OFBIZ-5312 - ofbiz-ecommerce-seo.patch, OFBIZ-5312 - > ofbiz-ecommerce-seo.patch > > > [This was proposed by Paul Piper in Nabble 7 months > ago|http://ofbiz.135035.n4.nabble.com/Proposal-URL-Generation-Changes-td4639289.html]. > Here is quoted Paul's proposal > {quote} > Hey Everyone, > over at ilscipio (www.ilscipio.com) we developed a set of functional OFBiz > changes that we believe the entire community could benefit from. The changes > have been implemented in parts in Syracus (www.syracus.net) for a while now, > but we figured that some of which are too crucial for ofbiz' success in the > long run, so we are considering the contribution (as we did with the SOLR > component). > As you are probably aware, OFBiz has a pretty uncommon way of generating > URLs. Most of this has to do with the fact that OFBiz uses a servlet > (ControlServlet) to handle all requests. The servlet is mounted at /control, > so that it won't interfere with other servlets. Though functionally valid, > this has the sideeffect that all urls are actually created on /control, which > is neither pretty, nor good by any measures of SEO. It also means that a few > 302 redirects are necessary to forward the user from / to /control/main. It > also makes requests more complicated, since many forwards are necessary > whenever somebody wants to move away from this implementation. > Since this is hurtful to many of the implementers, I wanted to discuss > whether or not you guys would be interested in the changes we have made. The > functional changes contain: > * Removal of /control out of all the urls > * SEO-friendly URLS > * Configurable product/category and other URLs > * Frontpage mapping from /main to / > It was tested on our end and contains all necessary improvements (Transforms, > Sample Configuration, Servlets & Filters) for it to be applicable. > If interested, I would create a new JIRA ticket for this and after a few > minor internal discussions, we will gladly provide the rest of you with it. > Regards, > Paul > {quote} > There is even a patch, mostly done by Jinghai Shi, that I attach here. Even > if it has been already used in [Syracus|http://syracus.net/] since early this > year, some help would be needed to test it thoroughly in OFBiz. > Then we should discuss if it's the way to go. I believe it is. Who needs a > /control/ or /main by default in ecommerce urls? Would you not prefer > http://localhost:8080/ecommerce/ over > http://localhost:8080/ecommerce/control/main ? -- This message was sent by Atlassian JIRA (v6.1#6144)