CyberHosting

How to Create a Subdomain

I tried to create a subdomain but it was created to the right side of the site name, it was created like this: www.site.com/subdomain and I would like it to look like this: www.subdomain.site.com
Tagged:
Tagged:

Comments

  • I tried to create a subdomain but it was created to the right side of the site name, it was created like this: www.site.com/subdomain and I would like it to look like this: www.subdomain.site.com

    When you create child-domain/sub-domain its directory structure is relative to the master domain such as:

    /home/site.com/public_html/sub.site.com

    That does not mean you have to access it this way, you can access it directly like a normal website at sub.site.com

    The path mapping does not have to do anything with a subdomain, or I misinterpret your question?
  • I tried to create a subdomain but it was created to the right side of the site name, it was created like this: www.site.com/subdomain and I would like it to look like this: www.subdomain.site.com

    When you create child-domain/sub-domain its directory structure is relative to the master domain such as:

    /home/site.com/public_html/sub.site.com

    That does not mean you have to access it this way, you can access it directly like a normal website at sub.site.com

    The path mapping does not have to do anything with a subdomain, or I misinterpret your question?
    Yes that's right, so is it just to create a redirect via .htaccess that would work?
  • I tried to create a subdomain but it was created to the right side of the site name, it was created like this: www.site.com/subdomain and I would like it to look like this: www.subdomain.site.com

    When you create child-domain/sub-domain its directory structure is relative to the master domain such as:

    /home/site.com/public_html/sub.site.com

    That does not mean you have to access it this way, you can access it directly like a normal website at sub.site.com

    The path mapping does not have to do anything with a subdomain, or I misinterpret your question?
    Yes that's right, so is it just to create a redirect via .htaccess that would work?
    Why would you need a rewrite?

    A rewrite is only needed if you want to map your sub-domain to master domain. For that, you can also use aliases: https://docs.cyberpanel.net/doku.php?id=alias
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!