In PrestaShop 1.7, you can create a 301 or 302 redirect using the built-in URL redirection feature. Here are the steps to follow:
- Log in to your PrestaShop 1.7 admin panel.
- Go to the "Traffic & SEO" section in the left-hand menu and select "URL Redirects."
- Click on the "Add new" button.
- In the "From" field, enter the URL of the page that you want to redirect.
- In the "To" field, enter the URL of the page where you want to redirect the traffic.
- Choose the redirection type (301 or 302) from the drop-down menu.
- Click on the "Save" button to create the redirect.
That's it! Your new redirect is now created and will direct traffic to the designated URL based on the redirection type you chose.