0

Long story short, we want to add only .html at the end of every category for the purpose of 301 redirects.

So an old category in Squarespace is like below:

www.domainname.com/categoryname

And in Magento2 we need it to be the below:

www.domainname.com/categoryname.html

Yes, I could add them in 1 by 1 through normal Magento 2 fashion. Looking for a concept to do on mass though? So essentially just adding .html to the end of the URL redirect for categories only. Thanks.

1

AFAIK, you can try: STORES > Configuration > CATALOG > Catalog > Search Engine Optimization > Category URL Suffix

enter image description here

  • That won't redirect the old URL to the new though, it will give 404 on the old Squarespace URL strings that are clicked through indexed in Google. The URL rewrite's will need to be listed somewhere. I.e. to redirect /oldcategory to /oldcategory.html – MagentoMac May 17 '17 at 18:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.