Setting Up a URL Redirect

This topic applies to

Applies to

SuiteCommerce | SuiteCommerce Advanced


This section contains information about setting up one URL redirect at a time.

You can set up redirects for any shopping domain you have entered in NetSuite. First, select the domain. Next enter the URL parameters you want to redirect from, and then enter the URL that points to the correct page. The combination of domain plus the URL you want to redirect from must be different from the URL you want to redirect to.


If you use Site Builder, you must enable the Descriptive URLs feature. You cannot redirect from Site Builder URL parameters such as, / You must use a descriptive URL such as /Product-Catalog/office-accessories.

Wildcards in URL Redirects

If you need to redirect from a URL that contains URL parameters, you can use the * wildcard to represent the parameters in the URL. For example, if you have the URL, you can create a redirect from /womens/blouses* to /womens/newcat/blouses. When you use the wild card in the redirect, all parameters will be passed to the redirect URL so that the final URL is


You cannot use a wildcard to redirect from one descriptive URL to another.

To set up a redirect:

  1. Go to Setup > Site Builder > Redirects > New for Site Builder or go to Setup > SuiteCommerce Advanced > Redirects > New for SuiteCommerce Advanced.

  2. Select a domain in the Domain Name field. The domains listed here are the ones you set up at Setup > Website > Domains.


    If you have set one of your custom domains as the Primary Web Site URL, then make sure you create a redirect with that domain, as well as other domains. For more information, read Using the Primary Web Site URL in Redirects.

  3. In the Redirect From URL field, enter the URL that points to the page you want to redirect. Do not include the domain, instead use a relative URL.

  4. In the Redirect To URL field, enter the URL that points to the page where you want visitors to go. Here, you can enter any of the following:

    • a relative URL that points to a page on your NetSuite site

    • an absolute URL that points to a page on your NetSuite site

    • a descriptive URL that points to a tab, category, or item detail page

    • an absolute URL that points to another site

    For more information, read Relative vs. Absolute URLs

  5. Click Save.


    Redirects go into effect immediately when you save them.

After you save the redirect record, you can visit the Redirects list page to see all the redirects set up for your web site.

Using the Primary Web Site URL in Redirects

If use one of your custom domains as the Primary Web Site URL, then you must select that domain when creating a redirect. For example, you have a site with two custom domains where the Primary Web Site URL domain is, and the secondary domain is To create a successful redirect, you must use the domain, Select as the domain in a redirect that goes from: /tshirt, to: /special-tshirt. If you create the redirect with the secondary domain, and then navigate to, you are first redirected on the primary domain, so the redirect on the secondary domain fails.

Relative vs. Absolute URLs

When creating URL redirects, it is important to first determine if the URL should be entered as relative or absolute. A relative URL specifies only the path to the page and does not include the domain, for example /office-furniture. The absolute URL includes both the domain and the path, for example

When to use Relative URLs

When you want to create a redirect from a page on a domain to a different page on the same domain, you can use a relative URL. Because you specify the domain on the Redirect page in NetSuite, you can use relative URLs for the Redirect From and Redirect To URLs. The redirect is created using the domain you selected.

This is the method you should use when you retire a page on your site, restructure your site, or change the name of a page.

When to use Absolute URLs

When migrating from one domain to another it is important to use absolute URLs instead of Relative URLs. Consider the following example:

Your domain has changed from to You want to redirect traffic from to

When you enter the redirect, you select your old domain as the domain. In this example, the domain is For the Redirect From URL, you enter the relative path to the page on the old domain. For the Redirect To URL you enter the absolute path to the page on the new domain.

As a result, when a visitor or search engine goes to, they are redirected to