URL Forwarding in Hosting: How to Set It Up
URL forwarding (also called URL redirecting) lets you send visitors from one web address to another automatically. You might use it to point a new domain to your main site, redirect old pages to new ones, or make a short URL lead to a long one. This guide covers the common methods in cPanel, Plesk, and direct domain registrar settings, so you can pick the one that fits your setup.
What You’ll Need
- Access to your hosting control panel (cPanel, Plesk, or similar) or your domain registrar’s dashboard.
- The domain name you want to forward from (the source).
- The destination URL (the full web address you want to send visitors to, including https://).
- If you’re forwarding a subdomain, make sure the subdomain already exists in your hosting account.
Step-by-Step
- Decide where to set the redirect. If your domain is registered with a company that also provides hosting (like GoDaddy or HostGator), you can often do it right in the registrar’s DNS settings. If your hosting is separate, use the control panel’s redirect tool or edit the .htaccess file.
- Using cPanel (most common):
- Log in to cPanel.
- Find the Domains section and click Redirects.
- Under Add Redirect, choose the type (301 or 302). 301 is permanent, 302 is temporary.
- Select the domain from the drop-down menu and enter the path (leave blank to forward the whole domain).
- Enter the full destination URL (e.g.,
https://example.com/new-page). - Choose whether to redirect with or without www (usually you want both to go to the same place).
- Click Add.
- Using Plesk:
- Log in to Plesk.
- Go to Websites & Domains and click Hosting Settings for the domain you want to forward.
- Scroll to Redirect and select Permanent (301) or Temporary (302).
- Enter the destination URL.
- Click OK.
- Using .htaccess (Apache servers):
- Open the file manager in cPanel or use FTP to access your site’s root folder.
- Create or edit the
.htaccessfile. - Add one of these lines at the top (replace the URLs with yours):
Redirect 301 / https://newdomain.com/
or for a single page:
Redirect 301 /old-page.html https://newdomain.com/new-page
- Save the file and upload it if needed.
- Using your domain registrar (if not hosting):
- Log in to your registrar (like Namecheap, GoDaddy, Google Domains).
- Find the domain you want to forward and look for a Forwarding or Redirect option.
- Enter the destination URL and choose the redirect type (usually 301 or 302).
- Save the settings.
- Test the redirect. Open a new browser window (or incognito) and type the old URL. You should land on the new one. If it doesn’t work, check for typos and that the destination is live.
Common Mistakes
- Using the wrong redirect type. A 301 tells search engines the change is permanent. A 302 is for temporary moves. Using 302 for a permanent change can hurt SEO.
- Forgetting the protocol. Always include
https://in the destination URL. If you leave it out, the redirect may go to a relative path and break. - Redirecting to a page that doesn’t exist. Double-check the destination URL is correct and the page loads.
- Creating a redirect loop. If you forward A to B, and B forwards back to A, visitors get stuck. Make sure you don’t have two redirects pointing at each other.
- Not considering www vs non-www. If you forward only the non-www version, the www version might still show the old site. Set up redirects for both or use a wildcard.
Tips
- Use a 301 redirect for permanent moves, like changing your domain or merging pages. It passes most link equity to the new URL.
- If you’re redirecting an entire domain, consider using the registrar’s forwarding feature because it often handles the DNS and SSL more smoothly.
- For a subdomain like
blog.example.com, create the subdomain in cPanel first, then set up a redirect from that subdomain to the destination. - Keep a record of all your redirects. If you later remove one, you’ll know what to delete.
- If you’re doing many redirects (like after a site redesign), consider using a redirect manager plugin or a dedicated redirect tool if you’re on a CMS like WordPress.
Troubleshooting
- Redirect not working. Clear your browser cache and try again. Also, check that the DNS for the source domain is pointing to your hosting (if using .htaccess) or to the registrar’s forwarding service.
- Getting a 404 error. The destination URL might be wrong, or the redirect rule is only applying to a specific path. Verify the exact URL you typed.
- SSL certificate errors. If the source domain doesn’t have an SSL certificate, visitors may see a warning before the redirect. Install a free SSL (like Let’s Encrypt) on the source domain.
- Redirect works but shows old URL in the address bar. This means it’s a meta refresh or JavaScript redirect, not a server-side 301. For a true redirect, use .htaccess or the hosting panel’s redirect tool.
- Can’t find the redirect option. Some hosting plans don’t offer a GUI redirect tool. In that case, use .htaccess or contact your host’s support.
Frequently Asked Questions
What’s the difference between 301 and 302 redirects?
A 301 is permanent and tells search engines to replace the old URL with the new one. A 302 is temporary and signals that the redirect might change later. For most forwarding, use 301.
Will URL forwarding affect my SEO?
Yes, but usually positively if you use a 301. It consolidates link equity to the new URL and helps search engines find your new page. Avoid 302 for permanent moves.
Can I forward a domain to a specific page on another site?
Yes. In most control panels, you can enter the full path in the destination, like https://example.com/special-offer.
How long does it take for a redirect to work?
Usually instantly, but DNS changes can take up to 24-48 hours if you’re forwarding at the registrar level. Hosting panel redirects typically work immediately.
Do I need to keep the old domain registered?
Yes, as long as you want the redirect to work. If you let the domain expire, the redirect will stop.
Can I forward a domain without hosting?
Yes, many registrars offer free URL forwarding even if you don’t have hosting with them. You just need to set it up in your account.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.