0

I moved my website from Opencart to Magento and also renamed all categories.

So now I do have a lot of broken links that I would like to redirect to their new categories.

For example I have : https://www.umweltfreunde.com/Wertstoffsammler-Abfalltrennsysteme/stahlblech-trenn-systeme

and now all links in the Wertstoffsammler-Abfalltrennsysteme/* should go to the new category : https://www.umweltfreunde.com/abfall-und-entsorgung/wertstoffsammler-und-abfalltrennsysteme

So I have about 5 old categories and hundreds of links under them that needs to redirect to the new category.

The older products are no longer in use, so I want to redirect the products to their category so the customer will see the category instead.

0

I think best option for you is from .htaccess file.

You can add these lines in your .htaccess file:

RewriteEngine on
RewriteBase /
##comment upper 2 lines if these are already set in your htaccess
RewriteRule ^Wertstoffsammler-Abfalltrennsysteme/(.*) https://www.umweltfreunde.com/Wertstoffsammler-Abfalltrennsysteme/stahlblech-trenn-systeme/$1 [R=301,L]

Ref

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.