jijaybajay Posted October 29, 2013 Share Posted October 29, 2013 (edited) Hi, I tried to remove Category Name from my product URL with URL friendly ON I changed route to product from this: {category:/}{id}-{rewrite}{-:ean13} (link was find with this route) to this: {id}-{rewrite}{-:ean13} Deleted my old .htaccess file, let PS regenerate by itself. Turn smarty cache off (and clear it). Clear my browser cache and cookies. But then I got all my product links are errors (Page Not Found) I want all my product url without category name. Here's my link: bajubola99.com UPDATE: When I removed {category:/}, PS 1.5.6 is automatically showing category with the same ID as in the product URL. For example: domain.name/product-1. PS will show domain.name/category-1 So, if there's no category which has the same ID as the product url, it will show page not found. For example: domain.name/product-999. PS can't show category with ID 999, as result it gives page error I think it's a bug. How to solve this? Edited October 29, 2013 by jijaybajay (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 29, 2013 Share Posted October 29, 2013 hello this is because you've got almost the same pattern for products as for category. can you for test purposes only add to category additional sign, for example:{id}---{rewrite} 1 Link to comment Share on other sites More sharing options...
jijaybajay Posted October 29, 2013 Author Share Posted October 29, 2013 (edited) hello this is because you've got almost the same pattern for products as for category. can you for test purposes only add to category additional sign, for example:{id}---{rewrite} Wow, thank you vekia. Now it works. I changed route to category from: {id}-{rewrite} to {id}--{rewrite}, now it works. Btw, should I changed all the routing URL things that contain category from {id}-{rewrite} to {id}--{rewrite} ? Like for example: Route to category with attribute selected_filter for the module block layered -> from: {id}-{rewrite}{/:selected_filters} to {id}--{rewrite}{/:selected_filters} Route to CMS category -> from content/category/{id}-{rewrite} to content/category/{id}--{rewrite} Edited October 29, 2013 by jijaybajay (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now