How do I redirect a sub domain?

How do I redirect a sub domain?

To forward your subdomain, follow these steps:

  1. Sign in to Google Domains.
  2. Click the domain name.
  3. Open the menu , if applicable.
  4. Click Website.
  5. Click Add a forwarding address.
  6. Click Edit.
  7. Click + Forward a subdomain.
  8. Enter the subdomain you want to forward.

How do I add redirects to Hostgator?

How to Set Up a Redirect

  1. Log in to cPanel.
  2. Under the Domains section, click the Redirects icon.
  3. From the Type dropdown menu, select your preferred type of redirect.
  4. Select one of the following www.
  5. Clicking the Wild Card Redirect option allows users to set up a redirect to the same file on a new destination.

How do I change the root directory in Hostgator?

To change the document root folder:

  1. Log in to cPanel.
  2. In the Domains section, click the Addon Domains or Subdomains icon, depending on which you’d like to modify.
  3. Locate the addon domain (or subdomain) you wish to modify.
  4. Click the pencil icon next to the current document root for the domain you wish to modify.

How do I create a custom URL redirect?

In This Article

  1. Log into cPanel using the details your host gave you when you first signed up.
  2. Scroll to the Domains section and click Redirects.
  3. Choose the type of redirect you want.
  4. Choose the domain name you want to redirect from the drop-down box.
  5. Type the rest of the path to the file or folder you want to redirect.

How do I redirect a domain to a domain?

Click on the Redirects icon under the Domains area of your cPanel home page. Select your domain name from the drop down menu on the next line. In the redirects to text box, type in the full URL of your domain, without the www (e.g. http://yourdomain.com). Select the radio button next to Only redirect with www.

How do I add an addon domain to Hostgator?

To Create an Addon Domain:

  1. Log in to your cPanel.
  2. Click the Addon Domains icon under Domains.
  3. New Domain Name: Enter the new domain name, but do not put HTTP or www in the name.
  4. Directory/FTP Username/subdomain Name: This is the folder that cPanel creates, typically located in the public_html folder.

How do you do a 301 redirect?

301 redirect

  1. Open up a text editor such as “Notepad”.
  2. Copy the following line of code into your text editor, replacing http://www.example.com/ with the URL you wish to forward your domain name to. Redirect 301 / http://www.example.com/
  3. Save the file as . htaccess.
  4. Upload the file to your web space.

How do I redirect a domain to the main directory?

With the redirect code we provide below, users landing on your primary domain will be redirected to the contents of a subdirectory of your choice….Follow along with the steps below to learn how to redirect to a folder:

  1. Log into cPanel.
  2. Choose File Manager under Files.
  3. Edit the . htaccess file.

Can you redirect a URL?

When you redirect a URL, you’re simply forwarding it to another address on the same, or different domain. You can set up a redirect that sends visitors to your new domain name when they’ll try to access a URL that belonged to your old domain.

author

Back to Top