URL redirects enable you to efficiently redirect URLs on your site to specific pages, ensuring visitors land on the correct content and preserving your search engine ranking. This feature supports redirects to regular site pages, external URLs, and custom pages like dynamic pages and blog posts, using advanced techniques such as wildcards and variables for flexible redirection with a single URL rule.
Note
-
When migrating to Duda from a different platform or hosting service, redirects are not needed if the URLs remain unchanged. However, if there are any differences in the URLs, such as the old URL path being
/about.html
(a previous URL standard) and the new path being/about
, a redirect will need to be added. -
While redirects can be set up to redirect to a different domain, the original page must be on the same domain. For example, you cannot create a redirect from
www.a-different-domain.com
towww.your-Duda -site.com
(the domain that is or will be assigned to your Duda site).
-
Transitioning to a new responsive site may impact search engine rankings temporarily. Use URL redirects to redirect old page URLs to new responsive URLs, maintaining search engine visibility.
-
Existing pages take priority over redirects. If the old page's URL still exists, the redirect will not direct users to the new page.
-
Wildcards: Define URL rules based on URL structure using single (*) or double (**) asterisks to match text segments. Example:
-
Single asterisk matches text between the current slashes. For example,
/category/*/home
will redirect to/category/xyz/home
or/category/abc/home
but it will not redirect to/category/b/c/home
. -
Double asterisk matches any text in multiple slashes. For example,
/category/**/home
will redirect to/category/b/c/home
.
-
-
Variables: Define a URL rule applicable to multiple pages sharing a similar structure but different content. Placed between the source URL and target URL, they facilitate efficient redirection. For instance, this is useful when converting store product URLs from one format to another. Variables are enclosed within curly brackets {} in both the source and target URL rules, requiring identical spelling for proper functionality.
Example:
-
If you have an old store product URL of
/product/p-23245-umbrella
and the new URL is/product/umbrella
, the source rule would be/product/p-*-{productname}
and the target rule URL would be/product/{productname}
.
-
-
Path: The part of the URL that identifies a specific resource within the domain. For example the path in
www.domain.com/about
isabout
.
Before configuring a URL redirect, we advise removing the old pages from your site. If the old page or URL remains, the URL redirect will not function as intended.
To set up redirects:
-
In the side panel, click SEO & Settings and select URL Redirect.
-
Click Add New Redirect.
-
Enter the original path in the Source URL to redirect from.
-
Only the path is needed rather than the full URL. For example the path in
www.domain.com/about
isabout
. If the full URL (for examplewww.domain.com/about
) is entered, the redirect will not work. -
If needed, utilize wildcards (*) and variables ({}) such as {product} for efficient redirection across multiple pages. See the section in this article, Terminology for more information.
-
-
Choose the Destination:
-
Destination Page: Select a page within your Duda site.
Note
When redirecting to an anchor on the site, use the Destination - Custom URL option and place the full URL in the field (for example, www.domain.com/#about-us).
-
Destination - Custom URL: Enter an external or relative URL.
Note
If you used a variable in the Source URL field, use the same variable in this field too. The variable must be spelled the same way in both. You can also redirect to relative URL like blog and dynamic page, for example
/blog/post-1
.
-
-
Use the Redirect Type drop down menu to select the type of redirect. Following are the options:
-
301 redirect. Permanently moved (most common).
-
302 redirect. Temporarily moved.
-
-
Click Add.
You can import multiple URL redirects from a CSV file, with each CSV file accommodating up to 200 redirect URLs and supporting the use of wildcards and variables. To access the option for uploading a CSV file to import multiple redirects, you must first add at least one single redirect.
To import multiple redirects from CSV:
-
Download the CSV template using this link provided (the template is also available in step 4): redirects-import-template-csv. Refer to the CSV Upload Guidelines section for more information.
-
In the side panel, click SEO & Settings and select URL Redirect.
-
Click Import Multiple Redirects.
-
If your CSV file is ready, click Upload CSV. If you skipped step 1, download the template by clicking Download CSV template first to ensure the correct structure is followed.
Note
The uploaded CSV should be in the same structure as our template, where the first column is the old URL and the new column is the new URL.
-
Select your CSV, and click Open.
-
The CSV should be in the same structure as our template, where the first column is the old URL and the new column is the new URL.
-
Only enter the URL path, not the full URL. For example, if the old URL is
www.domain.com/about,
enter/about
. Similarly, for the destination page, if the URL iswww.domain.com/about-us
, enter/about-us
-
The URL path in the Destination page URL column must match exactly as it appears in the editor. If it does not, it will not be imported.
-
If a redirect for an old page already exists in the editor, the redirect in the CSV will overwrite it.
-
If the Redirect Type is left blank, it will default to 301.
-
Ensure that you use a standard URL path format (for example
/about-us
). -
A forward slash (
/
) can be placed in the Destination Page URL when redirecting to the homepage. -
When redirecting to an anchor on the site, use the full URL (for example, www.domain.com/#about-us).
Example CSV:
-
URL Redirects are beneficial for consolidating multiple sites into one responsive site or transitioning to a new domain. They are also crucial for relocating specific pages to a new domain
-
Ensure visitors understand redirection to avoid confusion or phishing concerns.
-
Use the Partner API to create custom URL rules for tailored responses based on specific page visits.
Specific URL redirects do not apply to URL parameters, which are components following the '?' or '#' in a URL. Duda treats URLs with parameters as identical, regardless of the parameter values.
For example, the URL http://www.sitename.com/page1
is considered the same as http://www.sitename.com/page1?url_referrer=blank
by Duda 's system.
If you have configured a 301 redirect for "page1," it will also redirect any "page1" URL with a URL parameter. If you need a specific URL redirect for a URL parameter, please check with your DNS host to see if this is something they can set up for you.
Duda allows you to upload various file types to your website's root, enabling additional functionality and data support. For more details, refer to our feature guide on Site Configuration Files.