MagicWP Docs

Redirects

Send visitors from one URL to another at the server level

Redirects send visitors from one path on your site to another — handled by the server (nginx) before WordPress loads, so they're fast and work even for pages that no longer exist. Manage them in the dashboard: your site → Redirects.

Add a redirect

Click Add Redirect and fill in:

FieldWhat it is
SourceThe request path to match, starting with / (e.g. /old-page). Regex patterns are allowed — see below.
DestinationWhere to send visitors: a path on your site (/new-page) or a full URL (https://example.com/page).
TypeThe HTTP status code — 301 Permanent (default), 302 Temporary, 307 Temporary, or 308 Permanent.
EnabledToggle a rule on or off without deleting it.

Exact vs. pattern matching

  • A plain Source like /old-page matches that exact path only.
  • A Source containing regex characters — ( ) * ? + [ ] | \ — is treated as a pattern, e.g. /old-blog/(.*) matches anything under /old-blog/.
  • In the Destination, use $1$9 to reuse captured parts of a pattern. Source /old-blog/(.*) → Destination /blog/$1 keeps the rest of the path.

When several pattern rules could match, they're evaluated in order and the first match wins.

Examples

SourceDestinationTypeResult
/old-page/new-page301Exact page moved permanently
/shophttps://store.example.com301Send a path to an external site
/old-blog/(.*)/blog/$1301Move a whole section, keeping the sub-path
/promo/sale302Temporary redirect for a campaign

Managing rules

Each rule can be edited, toggled with Enabled, or deleted. You can also bulk import many rules at once. A site can have up to 100 redirect rules.

Permanent vs. temporary

Use 301 for moves that are permanent — browsers and search engines cache it aggressively, which is great for SEO but hard to undo in a visitor's cache. Use 302 (or 307) for anything temporary, like a short-lived campaign.

Source and destination must differ

A rule can't point a path back to itself, and every Source must be unique. Changes are validated and applied to the server immediately, so a saved rule is live right away.

On this page