A redirect sends visitors from one address to another, for example from an old page to a new one or from one domain to another.
| Type | When to use it |
|---|---|
| 301 (permanent) | The page or website has moved for good. Search engines pass the old address's ranking to the new one. |
| 302 (temporary) | The move is only for a short time, such as during maintenance. |
/old-page. Enter / to redirect the whole domain.https://yourdomain.com/new-page.For more control, add redirect rules to the .htaccess file in your website's public_html folder, using File Manager. For example, to redirect a single page:
Redirect 301 /old-page https://yourdomain.com/new-page
To send all visitors from www.yourdomain.com to yourdomain.com:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
If your website uses WordPress, add your rules above the # BEGIN WordPress line. Always download a copy of .htaccess before editing it. A mistake in this file can take your website offline.
To send all visitors to https://, see Forcing HTTPS on your website.