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
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?
Comments
/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?
CyberPanel
Blog
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
CyberPanel
Blog