Jump to content

Products URLs do not auto rewrite after change


RobertXX

Recommended Posts

Hi,

I changed products FURL from

{category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}.html

to

{category:/}{id}{-:id_product_attribute}/{rewrite}{-:ean13}.html

 

When I access old URL it does not auto point to new one BUT for categories and other pages it does. I get 404 when accessing old URL. Any advice/help please?

P.S. I regenerated .htaccess

Edited by RobertXX (see edit history)
Link to comment
Share on other sites

On 7/7/2022 at 10:25 PM, RobertXX said:

When I access old URL it does not auto point to new one BUT for categories and other pages it does. I get 404 when accessing old URL. Any advice/help please?

P.S. I regenerated .htaccess

do you have a back up to undo the damage? What version you are using? and why did you do that in the first place?

Link to comment
Share on other sites

"and why did you do that in the first place?"

I am advanced user, had purpose to do so :) However, I thought PrestaShop should handle this automatically. Apparently, I noticed it does not for Products. I quickly sorted it via .htaccess rewrite rules and prepared custom controller to handle that. Now all is OK.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...