رفتن به محتوا

Redirects

این محتوا هنوز به زبان شما در دسترس نیست.

A redirect sends visitors from one address to another. For example, if you moved a page, a redirect makes the old link still work by sending people to the new page.

Redirects are the easiest kind of rule.

  • You moved or renamed a page and don’t want old links to break.
  • You want www.example.com and example.com to land on the same place.
  • You want everyone on http:// to switch to the secure https://.
  • You’re running a short link that should point somewhere else.
  1. Go to RulesAdd RuleRedirect.
  2. Set the When (which address to match). For example:
    • /old-page to match a single old page.
  3. Set the Then (where to send the visitor). For example:
    • https://example.com/new-page.
  4. Pick the redirect type (see below).
  5. Save.

When you make a redirect, you choose how “final” it is:

  • Permanent (301): The page has moved for good. Use this when you’ve permanently changed an address. Search engines update their links.
  • Temporary (302): The change is just for now. Use this for short-term redirects, like during a sale or maintenance.

Force the secure site (httphttps):

  • When: any http:// request
  • Then: the same address on https://
  • Type: Permanent

Send www to the plain domain:

  • When: www.example.com
  • Then: example.com
  • Type: Permanent

Old page to new page:

  • When: /about-us
  • Then: /about
  • Type: Permanent

My redirect loops forever / shows an error. This usually means the When and the Then point at each other. Make sure the destination doesn’t also match the condition.

I changed a redirect but still see the old behavior. Browsers remember permanent redirects. Try a private/incognito window to test, or clear your browser history.