How to create redirects on Shoporama
Guide to creating redirects in Shoporama - from simple redirects to regex and CSV import.
A redirect sends visitors from an old URL to a new one. This is important for SEO and to avoid 404 errors - for example, when you have changed your webshop system or changed the URL structure.
Shoporama always creates 301 redirects (permanent redirect), which tells search engines that the page has moved permanently.
Create a simple redirect
- Click on the cog in the top right of the admin
- Select Redirects from the menu
- Click Create new redirect
- Fill in the From field with the old URL (relative, without domain) - e.g.
blaa-sweater-p4433.html - Fill the To field with the new URL (absolute, with domain) - e.g. https://www.
dinshop.dk/blaa-sweater - Click Save
Please note
The "To" address should be absolute (with https://) because you can redirect to a completely different page or domain. The "From" address should be relative (without domain).
Include URL parameters
If you want to preserve URL parameters (e.g. ?affiliateid=57333) when redirecting, check the "Include arguments" box before saving.
Without this setting, parameters will be removed and affiliate tracking or campaign links may be lost.
Redirects with regular expressions (regex)
If you need to redirect many URLs with a common pattern, you can use regular expressions. Check the "Regular expression" box when you create the redirect.
Example: You want to redirect all URLs that start with product- and end with .html:
product-.*\.html
Example: Redirect URLs with varying parameters:
blaa-sweater\?affiliateid=.*
This will match blaa-sweater?affiliateid=66789, blaa-sweater?affiliateid=12345 etc.
Important
Regular expressions are a complex topic. If you're not familiar with regex, we recommend allying yourself with someone who has experience with it.
Import redirects via CSV
If you have a lot of redirects (e.g. when moving shops), you can import them as a CSV file. Go to Redirects in settings and click Import.
The CSV file must be semicolon-separated with the following format:
from_url;to_url;er_regex;include_arguments blaa-sweater-p4433.html;https://www.dinshop.dk/blaa-sweater;0;0 old-category/.*;https://www.dinshop.dk/ny-kategori;1;0
The import runs in the background and you will receive an email when it is complete.
Troubleshooting
- Redirect not working - Check that there is not already a product, category or static page with the same URL as the "from" address. Actual pages have higher priority than redirects.
- Circular redirect - You can't redirect a URL to itself. Shoporama blocks this automatically.
- Duplicate address - The same "from" address can only be used once. Delete the existing redirect first if you want to change the destination.
- Images cannot be redirected - The redirect system only works on page URLs, not images.
Export and monitor
You can export all your redirects as CSV for backup or overview. Shoporama also keeps track of how many times each redirect has been used and when it was last used - so you can clean up outdated redirects.
Do you need help? Contact us at support@shoporama.dk.