Table of Contents

The redirector is a special feature provided by DNSimple that you can use to redirect HTTP requests sent to a host name to a different URL.

This feature can be used, for example, to redirect the www version of a domain the non-www hostname. Another use case is to redirect a secondary domain you purchased to the main domain, without pointing it to any web hosting service.

Configure a redirect

To configure a redirect you use the special URL record, available in the record editor.

The article URL record contains specific information on how to create and manage URL records.

Redirect status code

The redirector sets a 301 status code. The code is not configurable and it’s currently not possible to return a 302 temporary redirect using the URL record.

HTTPS redirects

The redirector doesn’t support HTTPS, therefore you cannot redirect an HTTPS request.

In other words, it is not possible to use the URL record to redirect the www to the not-www version of your domain with HTTPS. You will be able to redirect, but not

Take a look at the article redirector and HTTPS for additional information and a list of possible of alternative solutions.

URL to URL redirects

URL to URL redirects can’t be done with our URL record. Only domains or subdomains can be redirected to complete URLs.

The following redirect will not work, because you cannot add a url to the name part of the URL record. to

This would work because you can add an URL record for to

Note that any path or query information passed by the user will be passed to the resulting URL. So if you set up a redirect from to then when the user goes to they will be redirected to

Wildcard URL redirects

You can configure a wildcard redirect using the same conventions of a DNS wildcard record. However, the target cannot contain any wildcard reference.

# Valid redirects
* to
* to

# This will redirect to the hostname
* to *

The wildcard pattern can only be on the left outermost level.

# Valid redirects
* to

# Invalid redirects
foo.* to

Match-based URL redirects

The redirector currently doesn’t support redirect targets that include a back-reference (match) to the redirect source. For example, the following redirects will not work:

* to$1
* to $