URL redirects
Dave Quested avatar
Written by Dave Quested
Updated over a week ago

URL redirects allow you to handle URLs which don't exist on your site and result in a 404 (not found). You can tell these 'broken links' to redirect to somewhere else.

Setting up URL redirects is handy if:

  • Your migrating your store to Airsquare from another platform and the URLs are different.

  • You've changed the URL path for a page/product/event/article and want the old link to still work.

  • You're sending an email newsletter and sent the wrong link to everyone!

  • You want to create shorter URLs which you want to share in emails, over the phone or social media.

Setting up a URL redirect just requires the old URL path (link that doesn't exist) and the new URL path (where you want it to go to).

How do I add a URL redirect?

  1. Go to Website > Settings > URL redirects.

  2. Click Add.

  3. Enter the Old URL path (link that doesn't exist).

  4. Enter the New URL path (where you want it to go to on your site).

  5. Click Add.

Note the URL paths must start with a forward slash '/'.

How do I import URL redirects?

Our import feature allows you to bulk add URL redirects by uploading a Microsoft Excel spreadsheet (.xlsx file type) that contains a single sheet of data structured into supported columns.

To create the supported columns, add the following headings to the first row of two of the spreadsheet columns:

  • OLD_URL_PATH

  • NEW_URL_PATH

Once the supported columns have been created, URL redirect data can be added providing it meets the following guidelines:

  • Each row of your spreadsheet is read as a single URL redirect.

  • OLD_URL_PATH and NEW_URL_PATH - must start with a forward slash '/'.

  • OLD_URL_PATH - cannot already be an existing URL redirect and should be relative (e.g. /products/123-abc). Don't include the domain name.

Once URL redirect data has been added, the spreadsheet can be imported using the following process:

  1. Go to Website > Settings > URL redirects.

  2. Click Import.

  3. Click Choose File under Select the file on your computer to open a File Explorer window.

  4. Select the spreadsheet you wish to import from your computer.

  5. Click Import.

Once the import has finished, you will be redirected back to Website > Settings > URL redirects where a success message will be displayed.

If there have been any issues with your URL redirect data, an error message will be displayed with the row number and issue. Make the relevant changes to your URL redirect data then repeat the process above from step 3.

Help! URL redirects for .asp, .aspx, .php, .html, .htm don't work!

By default we block all requests to those file extensions.

We can remove this restriction if you require.

How do I edit a URL redirect?

  1. Go to Website > Settings > URL redirects.

  2. Find the URL redirect you want to edit and click Edit.

  3. Change the URL paths.

  4. Click Update.

How do I delete a URL redirect?

  1. Go to Website > Settings > URL redirects.

  2. Find the URL redirect you want to delete and click Delete.

  3. Click Delete.

Did this answer your question?