KnowledgebaseHow can we help you?

Domain forwarding is a process of redirecting a website to other URL

      1. Login to cPanel and click the Redirects button in the Domains section.

 

      2. You will then be on the Add Redirect page. Click the drop-down box for Type and choose if you want to create a Permanent (301), or Temporary (302) redirect:-

 

  1. A 301 redirect is a permanent redirect from one URL to another. 301 redirects send site visitors and search engines to a different URL than the one they originally typed into their browser or selected from a search engine results page.

 

      2.  302 redirect points your domain name to a temporary page while you build your permanent website. The specific redirects help the search engines distinguish how long your website can be viewed at the current location.

 

      3. Click the next drop-down box and choose the domain you want to redirect and for the slash '/' field enter any folder names if necessary.

 

 

      4. Enter the address you want to redirect to in the Redirects to section.

 

 

      5.Choose if you want to "Only redirect with www." "Redirect with or without www." or "Do not redirect www."

 

  • Check the box if you want to create a Wild Card Redirect. This will add the the file/folder name after the url when it redirect. For instance, example.com/test.php would redirect to example2.com/test.php.

 

 

      6.Click the Add button when you are finished.

 

 

       7. You are finished when you see a green message with the details of your redirect.

 

 

Frame Forwarding

 

Frame Forwarding works similar to URL redirect except that instead of redirecting the visitor to your web page, the web page will be fetched from the other server and displayed in a frame. The difference is that after redirection, the browser's address bar will continue to display your domain name.

Unfortunately, there is no tool in cPanel which would automatically set up URL frame. However, you are still able to do that using certain HTML tags in your site index file.

Below is the given HTML code for frame forwarding. This code will be added in Files > File Manager >public_html folder > index.html.

<html>
<head>
<title> Site Title </title>
<style>
body {
    margin: 0;
    padding: 0;
}
body, iframe {
    width: 100%;
    height: 100%;
}
iframe {
    border: 0;
}
</style>

</head>
<body>
<iframe src="http://example.com"></iframe>
</body>
</html>

 

 

Was this answer helpful?

Also Read



+91 9429692542
10:00 am to 7:30 pm IST Monday to Saturday
Live Chat, Email and Tickets are available 24/7

HostAdvice Great Uptime Award for Gen X Web Hosting
Gen X Web Hosting Reviews