stennnn Posted April 8, 2019 Share Posted April 8, 2019 Hello guys, I am really struggling here with a problem with the links of my website. It's not online yet, it's on localhost. I have friendly URL's on, and I have this for the product schema: {category:/}{id}-{id_product_attribute}-{rewrite}.html This is the default one. The problem is whener I open a product without attributes, it doesn't load the page, giving me an error 404. For example: http://localhost/top-garden/cigarros-eletronicos/76-326-ego-aio-joyetech.html#/44-cor-preto This works fine because I've some attributes on the product. But if I choose one product without attributes, the link appears like this and gives a 404 error: http://localhost/top-garden/cigarros-eletronicos/77--pack-5-resistencias-bf-ss316-06ohm-joyetech.html But, if I add a zero on the attribute it works... Shouldn't it detect by itself and change? http://localhost/top-garden/cigarros-eletronicos/77-0-pack-5-resistencias-bf-ss316-06ohm-joyetech.html There is also one issue that started today which is, whenever I change the language, the link appears like this when it shouldn't. On the default language: "localhost/top-garden/pt" When I choose another language: "http://localhost/top-garden/en/?controllerUri=index" How do I fix this? Thank you so much, Hugo Link to comment Share on other sites More sharing options...
stennnn Posted April 8, 2019 Author Share Posted April 8, 2019 Ohh, When the Friendly URL is off, everything works like a charm... Thanks Link to comment Share on other sites More sharing options...
stennnn Posted April 8, 2019 Author Share Posted April 8, 2019 I manage to find the problem. The path was incorrect. {-:id_product_attribute} instead of {-id_product_attribute}. Sorry to bother you all, Thanks Link to comment Share on other sites More sharing options...
Gipielle Posted August 20, 2019 Share Posted August 20, 2019 Hello, in seo&url you have fix ? Link to comment Share on other sites More sharing options...
stennnn Posted August 20, 2019 Author Share Posted August 20, 2019 Hi Gipielle, Yeah, I have it fixed, thanks! Link to comment Share on other sites More sharing options...
Gipielle Posted October 7, 2019 Share Posted October 7, 2019 Thanks, your solution did not work for me. 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