on 2018 Apr 16 8:21 PM
The company I'm working with wants the category URL shortened so eliminate the /c/{code} portion of the URL. I've found where to change the category name but I haven't found how to shorten the URL so the /c/{code} is not displayed. Is there a SEO URL mapping file or is a custom URL mapper class needed? We are running Hybris v5.7
original http://www.mycompany.com/Categories/Tools-Hardware/c/1006
shortened http://www.mycompany.com/Categories/Tools-Hardware/
This is what I've found on Hybris Help https://help.hybris.com/6.5.0/hcd/8aee34a686691014b95a90034188796f.html
Request clarification before answering.
That /c/{code} part is what lets Spring MVC know to use the CategoryPageController
The bit before /c isn't important (isn't used for category lookup), and in fact you'll notice that it redirects you to the 'correct' url if you go to something like http://www.mycompany.com/foo/bar/baz/c/1006
If you want to remove it then you'd need to have a controller that can look up categories by name and since name isn't a unique attribute you'll need to decide what to do if 2 or more categories are found with the same name. Which category do you display?
I have seen implementations where there is a servlet filter that does lookup of so called SEO friendly urls and internally forward to the desired Hybris url but it just seems to me to be a huge amount of maintenance for little gain. I guess it keeps the SEO bods in work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.