How to set up 301 redirects in PrestaShop 8

Enlarged screenshot

Updated on

A 301 redirect tells Google and the browser that a URL has moved permanently to another one. In PrestaShop 8 it’s what keeps an address that changes or disappears from ending up as a 404. Here’s the step-by-step to create them, one at a time or in bulk.

  • Out of the box, PrestaShop 8 has no redirect manager: it only redirects disabled products.
  • Two options: rules in the server’s .htaccess or a module that manages them from the back office.
  • With Zeyvro SEO Redirect 301: New redirect, old path, new URL, type 301 and save. And when you change a product or category slug, the 301 is created on its own.

What is a 301 redirect?

It’s a permanent notice: “this page isn’t here anymore, it’s over there.” Whoever opens the old URL reaches the new one without seeing an error, and Google understands the page has moved. Without it, the old URL returns a 404 and the traffic that came through it is lost.

301, 302 or 303?

301 for permanent changes, which is the usual case: a URL you rename, a product you withdraw, a category you reorganise. 302 only when the change is temporary and the original URL will come back. The module offers all three types (301, 302 and 303) and suggests 301 by default.

Can PrestaShop 8 do 301 redirects out of the box?

Not as a manager: out of the box, PrestaShop 8 only redirects products you disable. To redirect any other URL (a renamed product page, a moved category, an old page) you need server rules or a module. Both options, compared with their pros and cons, are in 3 ways to manage 301 redirects in PrestaShop.

How do I create a 301 redirect step by step?

From the back office, with Zeyvro SEO Redirect 301, without touching server files:

  • Install the module: Modules → Module Manager → Upload a module, and pick the ZIP.
  • Go to Zeyvro → SEO Redirects, the menu the module adds when it installs.
  • Click New redirect.
  • Old URL: the old path, starting with /. For example, /old-shaving-soap.html.
  • New URL: the full destination URL, with https://.
  • Type 301 (the default) and save. You’ll see the message Redirect saved successfully.

To check it, open the old URL in your browser: you should end up on the new one, not on an error page.

💡

Do I have to create the 301 by hand when I change a product URL?

With the module, no. When you change the slug of a product or a category from its page and save, the 301 from the old URL to the new one is created on its own and shows up in the list with source auto. The details, including bulk changes, are in how to change a product URL in PrestaShop without losing your SEO.

How do I create many 301 redirects at once?

With a CSV. In Zeyvro → SEO Redirects click Import CSV, pick the file and the separator (;, the recommended one, or ,). Each line is one redirect:

/old-page.html;https://yourshop.com/new-page.html;301

When it finishes, the module tells you how many went in and how many it skipped as duplicated or malformed. Export CSV downloads every redirect of the shop, useful as a backup before changing anything.

What if I’d rather use the .htaccess?

You can write redirect rules in the server’s .htaccess. It works without installing anything, but it has downsides: it’s a critical file (one mistake and the site stops loading), it gets awkward with many rules, it doesn’t notice when you change a product URL, and PrestaShop regenerates that file, so you have to keep an eye on your rules still being there. A module stores redirects in its own database and doesn’t depend on the .htaccess.

.htaccess

Nothing to install, but you edit a critical file that PrestaShop regenerates, and URL changes go undetected.

From the back office

Create, edit, import and export without touching the server, plus the automatic 301 when a slug changes.

What about redirect chains?

If A redirects to B and later B to C, the visitor makes two hops. Zeyvro SEO Redirect 301 resolves them: with A→B and B→C, when C becomes D it updates A→D, so each old URL goes straight to the final destination.

Does a 301 redirect affect SEO?

Yes, for the better: it keeps the old URL from becoming a 404 and tells Google the page has moved permanently to the new address.

301 or 302?

301 for permanent changes, which is the usual case. 302 only if the change is temporary and the original URL will come back.

Do I have to edit the .htaccess?

No. With a module like Zeyvro SEO Redirect 301, redirects are managed from the back office without editing server files.

What goes in Old URL and New URL?

In Old URL, the old path starting with / (for example, /old-page.html). In New URL, the full destination address, with http:// or https://.

How do I check the redirect works?

Open the old URL in your browser: you should end up on the new one without going through an error page.

Can I import redirects from a CSV?

Yes. In Zeyvro → SEO Redirects, Import CSV takes one redirect per line (old path;new URL;type) with ; or , as separator and reports the skipped lines.

301 redirects from the back office, plus the automatic 301 when a slug changes.

See Zeyvro SEO Redirect 301 →

Zeyvro builds PrestaShop modules from a real store in production. Unobfuscated code.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top