@jose_gulgowski
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:
That's it! Your new redirect is now created and will direct traffic to the designated URL based on the redirection type you chose.
@jose_gulgowski
Please note that in PrestaShop 1.7, the URL redirection feature is limited to redirecting specific URLs to other URLs within your shop. If you need more advanced redirection options or want to redirect an entire category or product to a different URL, you may need to use a module or modify the code directly.
@jose_gulgowski
To create more advanced redirects or redirect entire categories or products in PrestaShop 1.7, you can use a module or modify the code directly. Here are the steps to accomplish this:
1 2 3 4 5 6 |
if (your_category_id_here) { $url = 'your_desired_url_here'; header("HTTP/1.1 301 Moved Permanently"); header("Location: $url"); exit(); } |
Please note that modifying the code directly requires technical knowledge and it's recommended to make a backup of your website before proceeding. It's also important to be cautious to avoid any errors that may result in the malfunctioning of your PrestaShop.