1. Home
  2. Docs
  3. User Guide
  4. Domains
  5. Redirect

Redirect

A redirect sends visitors from one address to another, for example from an old domain to a new one, from example.com/old-page to example.com/new-page, or from a whole domain to your social media page.

Where to find it: Domains → Redirect.

Redirects page

Note: This module needs a CWP Pro license on the server. If you see You need a CWPPRO license to use this module, contact your hosting provider.

Add a redirect

  1. Click Add a New Redirect.
  2. Type: Permanent (301) tells browsers and search engines the move is final — use it when content has moved for good. Temporary (302) is for short-term redirects; browsers keep the old address.
  3. https?://(www.)?: choose the domain to redirect from, or All Public Domains.
  4. Path: optional page or folder to redirect, for example old-page.html or shop. Leave empty to redirect the whole domain.
  5. Redirects to: the full destination address, including https://.
  6. www. redirection: Only redirect with www., Redirect with or without www (most common) or Do Not Redirect www.
  7. Optional: Wild Card Redirect — redirect every file in the folder to the same file name at the destination (for example /shop/item.html → https://new.com/item.html).
  8. Click Save.
Add a New Redirect form

The redirect list shows the domain, directory, regular expression, destination, status code, type and www/wildcard settings. Click the magnifying glass to see the .htaccess rule that was written, or Delete to remove the redirect.

Warning: You cannot use a wildcard redirect to send your main domain to a different folder of the same site — it creates a redirect loop. Redirects are written to the .htaccess file of the domain; editing that file by hand can break them.

Common problems

ProblemSolution
Too many redirects in the browserThe destination redirects back to the source, often through another rule or a CMS setting. Check the redirect list and your CMS address settings.
Redirect does not workYour browser cached an old response. Test in a private window. Also check that no other rule in .htaccess runs first.
HTTP → HTTPS redirectInstall an SSL certificate first (AutoSSL), then redirect to the https:// address.

Related

Was this article helpful to you? No Yes