How to redirect a domain / subdomain to the subfolder of another domain?

How to redirect a domain/subdomain to the subfolder of another domain?

 

These instructions were designed using our "Linux Hosting Cpanel", if you do not have hosting with ClickPanda you can buy one by clicking here.

Sometimes, it is necessary to redirect a domain or subdomain to a subfolder in another domain, this is not possible using ClickPanda's redirection service, nor using a CNAME record because the DNS configuration does not allow redirection to subfolders.

However, if you need to set up a redirect not allowed through our URL redirection you can use one of these methods:

Domain/subdomain redirection to a subfolder of the same domain/external domain without masking: (Applies only if your domain's NS records point to the NS of the Cpanel hosting server).

  • Unmasked redirection can be used when you require a domain or URL (www.ejemplo.com/carpeta) to redirect to another domain or subfolder (www.otrodominilo.com/carpeta) by changing the URL in the browser's search bar.

  • Redirect additional domains from Cpanel: by default, Cpanel has a main domain associated with it; however, you can add domains to set up redirects by following the instructions in this article: http://clickpanda.com/knowledgebase/50/Dominios-adicionales---Cpanel.html

  • Redirect a subdomain to a subfolder within the same domain/hosting: you must create a subdomain and edit the root directory following the instructions in this article: http://clickpanda.com/knowledgebase/51/Subdominios---Cpanel.html


To redirect a domain/subdomain/additional domain to an external domain: you must follow the instructions in this article: http://clickpanda.com/knowledgebase/53/Redirige---Cpanel.html


Domain/subdomain/subdomain redirection to a subfolder of the same domain/external domain with masking:


  • Redirection with masking can be used when you require a domain or URL (www.ejemplo.com/carpeta) to redirect to another domain or subfolder (www.otrodominilo.com/carpeta), without changing the URL address in the browser's search bar.


To do this, you must create a text file, name it index.html and upload it to the root directory or subfolder you want to redirect to. To upload files to your hosting you can follow the instructions in this article: http://clickpanda.com/knowledgebase/88/Como-instalar-y-usar-Filezilla-FTP-.html

 

Inside this file you must enter the following code and change the line: http://ejemplo.com/carpeta for the address to which you want to redirect with masking:

<html>
<head>
<title> Site Title </ title>
</ head>
<style>
body {
    margin: 0;
    padding: 0;
}
body, iframe {
    width: 100%;
    height: 100%;
}
iframe {
    border: 0;
}
</ style>
<body>
<iframe src = "http://example.com/folder" />
</ body>
</ html>

 

NOTE: It is necessary to configure the following option on the destination domain server replacing yourdomain.com with the source domain
X-Frame-Options: ALLOW-FROM https://yourdomain.com

 

In case you have any questions or concerns you can contact our live chat via whatsapp : https://wa.me/+573107216459

  • 251 Users Found This Useful
Was this answer helpful?

Related Articles

How can I renew my Domain?

1. From the members home area click on “Domains”     2. In the list of your domains, select...

What is a domain

A domain name is a textual version of an IP address, the number that points to a particular...

How can I buy my domain?

Acquire your preferred domain in less than 5 minutes by clicking here and following the system...

How can I transfer my domain to Clickpanda?

First remember that in order to transfer a domain you must ask your current provider:...

Types of DNS records and their functionality

Types of DNS records and their functionality When you purchase a product with ClickPanda, you...