How to set up redirects in Shoporama
A guide to setting up 301 redirects in Shoporama, from simple redirects to regex patterns and bulk CSV import.
A redirect sends visitors from an old URL to a new one. Redirects matter for SEO and help you avoid 404 errors, for example when you have switched ecommerce platforms or changed your URL structure.
Shoporama always creates 301 redirects (permanent redirects), which tell search engines that the page has moved permanently.

Create a simple redirect
- Go to Webshop → Redirects in the menu
- Click Create new
- Enter the old URL without the domain in the From field, for example blaa-sweater-p4433.html
- Enter the new URL in the To field. The field starts with your store's address, so just type the rest, for example blaa-sweater
- Click Save
Note
"To" can be a full address with https:// or a path on your own store, for example /blaa-sweater. If you leave out the slash, Shoporama adds it for you, so blaa-sweater works the same as /blaa-sweater. To send visitors on to a different domain, use the full address. "From" is always the address without the domain.
Keep URL parameters
To keep URL parameters (for example ?affiliateid=57333) when the redirect happens, check "Include query parameters" before you save.
Without this setting, the parameters are removed, and affiliate tracking or campaign links can be lost.
Redirects with regular expressions (regex)
If you need to redirect many URLs that share a pattern, you can use regular expressions. Check "Regular Expression" when you create the redirect.
Example: You want to redirect all URLs that start with produkt- and end with .html:
produkt-.*\.html
Example: Redirect URLs with varying parameters:
blaa-sweater\?affiliateid=.*
This matches blaa-sweater?affiliateid=66789, blaa-sweater?affiliateid=12345, and so on.
Example: Reuse part of the old address in the new one. Whatever is in parentheses in From is inserted in To where it says $1:
From: ^/shop/(.*)$ To: /$1
This sends /shop/blaa-sweater on to /blaa-sweater. The To field starts with your store's address, so you can type $1 after it, or delete it and type /$1. If the pattern has more parentheses, use $2, $3, and so on. The leading slash in From is optional, so ^shop/(.*)$ works the same way. This only works when the new address appears as-is in the old one. If your products have a different name in the address, each of them needs its own redirect.
If an address matches both a regular redirect and a pattern, the regular redirect is used. If it matches several patterns, the oldest one is used.
Important
Regular expressions are a complex topic. If you are not comfortable with regex, we recommend getting help from someone who has experience with it.
Import redirects from a CSV file
If you have many redirects (for example when migrating your store), you can import them as a CSV file. Go to Webshop → Redirects, and click Import. Choose the file, click Upload, check the preview, and click Import All.
The CSV file must be semicolon-separated and use this format:
from_url;to_url;is_regex;include_arguments blaa-sweater-p4433.html;https://www.dinshop.dk/blaa-sweater;0;0 gammel-kategori/.*;https://www.dinshop.dk/ny-kategori;1;0 ^/shop/(.*)$;/$1;1;0
The first line with the column names is skipped, so it is fine to include it. Empty lines and addresses that already have a redirect are skipped too.
The import runs in the background, and you receive an email when it is done.
Troubleshooting
- The redirect does not work. Make sure there is not already a product, a category, or a static page with the same URL as the "from" address. Actual pages take priority over redirects. A product that is offline or deleted can still be redirected, though.
- Redirect loop. A redirect that sends visitors back to the exact address they came from shows an error page instead of sending them in circles. This typically happens with a pattern that also matches its own To address when that page does not exist. Make the pattern more specific, or correct the To address. Two redirects that point to each other cause a "too many redirects" error in the browser, so avoid them.
- Duplicate address. Each "from" address can only have one redirect. To change the destination, click the pencil next to the redirect in the overview, change To, and click Save.
- Old images and files. An old address for an image or a file, such as a .jpg, .png, or .pdf, can be redirected as long as the file no longer exists in the store.
Export and monitor
You can export all your redirects as a CSV file for backup or an overview. The Used column shows how often each redirect is used. Click the number to see when visitors came and where they came from. The same redirect is counted at most once every five minutes.
Need help? Contact us at support@shoporama.dk.
Related articles
Add the image name to the image URL for better SEO
How to get a descriptive product image file name in the image URL by filling in the image description, for better image SEO.
Bulk edit products with table editing
Guide to bulk editing products in Shoporama: edit prices, stock, SEO fields, and much more in a spreadsheet-like interface.
How to create the most common landing pages
A guide to creating landing pages in Shoporama with rules for brands, price ranges, custom fields, and combined rules, or letting Claude set them up.