Skip to content
nsin docs

Redirects

A redirect sends visitors from one address to another — the easiest kind of rule.

Use a redirect when you:

  • Moved or renamed a page, keep old links working.
  • Want www.example.com and example.com in one place.
  • Move everyone from http:// to https://.
  • Run a short link pointing elsewhere.

Address bar shouldn’t change? Use a rewrite instead.

  1. Go to Rules → Add Rule → Redirect.
  2. When — addresses to match, e.g. /old-page.
  3. Then — a full URL (https://example.com/new-page) or a path.
  4. Pick the type (below) and Save.
TypeCodeUse it when
Temporary302Sale, maintenance, experiment, or still testing.
Permanent301Moved for good; search engines update links.
Temporary, keep method307Like 302, but POST stays POST. Forms, APIs.
Permanent, keep method308Like 301, but POST stays POST.
  • Keep the query string — appends ?utm_source=x to the target. On by default.
  • Keep the path — appends the original path: turns one rule into a whole-site move, example.com/* → newsite.com/*. Leave off for a single-page target.

Force HTTPS — http:// → https://, permanent.

www to plain domain — www.example.com → example.com, permanent, keep the path.

Old page to new page — /about-us → /about, permanent.

A www ↔ plain-domain redirect needs a proxied DNS record for www. Creating either canonical redirect sets it up. If nsin flags www as unproxied, switch it or the redirect won’t fire. See Managing DNS Records.

My redirect loops forever. When and Then target each other. Exclude the target path.

I changed a redirect but still see the old behavior. Browsers cache permanent redirects — test in private.

Two redirects match. The one higher in the list wins. See Rules Overview.