A 301 redirect is the server's way of saying that a page has moved permanently to a new address. Visitors and search engines are taken from the old URL to the new one automatically, and the search engine passes the trust the old page had earned on to the new address.
What is a 301 redirect
Every response from a web server has a status code. The code 301 Moved Permanently says: "From now on this page lives at a different address." The visitor's browser is sent straight on, and the search engine replaces the old address with the new one in its index.
Compared with other codes:
| Code | Meaning | When to use it |
|---|---|---|
| 301 | permanent redirect | a category or product changes its URL, a new domain |
| 302 | temporary redirect | a short-term promotion, a test |
| 404 | page not found | a page removed with no replacement |
When an online shop needs one
- renaming or moving a category – after the import the shop gives it a new URL,
- changing a product name, if the name is part of the URL,
- removing a category – redirect it to the parent category or a similar one,
- moving to another platform or domain.
Without a redirect the old URL returns a 404 error. The page loses its search rankings, and links from other websites, ads and product descriptions stop working.
What to watch out for
- Redirect to the matching page, not everything to the home page – search engines would treat that as a removed page.
- Avoid chains (A → B → C). Every extra hop slows things down and weakens the signal.
- Fix internal links too, so they point straight to the new URL.
- Do not delete redirects soon after the change – old links stay around on the web for years.
How Sortyra helps
When you change your category tree, Sortyra shows you the impact on URLs, prepares a 301 redirect file in your platform's format (Shoptet, Upgates, Shopify, WooCommerce, PrestaShop, Magento, .htaccess, nginx) and rewrites links to the old URLs in your product descriptions. The steps are in the article Renaming a category and 301 redirects.
Related terms
Frequently asked questions
Does a 301 redirect keep my search rankings?
With a 301 redirect the search engine passes the old page's ranking signals to the new one. Short-term fluctuations are normal, but without a redirect you would lose the rankings completely.
How do I set up a redirect?
Most e-commerce platforms can import redirects (for example Shoptet or Upgates). On your own server, redirects are written into .htaccess (Apache) or the nginx configuration.