How to point a subdomain to a file
Hi,
I want to know the steps to point a subdomain to a file ie:
name.domain.com => domain.com/name.html
Thank you
-
Hi @Rocko A redirect is what you're looking for it sounds like. You can find the redirects UI at cPanel>>Domains>>Redirects You can also read the documentation on redirects here: Redirects - Version 78 Documentation - cPanel Documentation Thanks! 0 -
Hello @Rocko I'm glad that worked for you. If at any time you ever have a suggestion that you believe may make our product better I would encourage you to open up a feature request which can be done using the link in my signature. Once it's open you can share the link here for others to vote on as well. Thanks! 0 -
Hello @Rocko I'm glad that worked for you.
It did not work. it seems this is not what I need. This is what I want: I have this file: to point to that file. When someone enters is shown, the same way than http:// example.net shows http:// example.net/index.html If I understood I need DNS records for but I did not see them when I tried: https?://(www.)? [ example.net ] / [ lauren.php ] Redirects to [ Submit A Feature Request but I could not enter since it does not recognise the username and password that I use here, unless it is required to create new ones for that system.0 -
Hello @Rocko Since you're doing a subdomain you can actually do all of this from cPanel>>Domains>>Subdomains. I set this up on my test server and it's working without issue for me. Here's an example of how it looks on my server: 1. Create the Subdomain: 57849 2. Modify the Subdomain to add the redirection by clicking "Manage Redirection": 57853 3. Save it and it should be good to go This automatically adds the following redirect into the .htaccess as well: RewriteCond %{HTTP_HOST} ^mydomain\.us$ [OR] RewriteCond %{HTTP_HOST} ^www\.mydomain\.us$ RewriteRule ^/?$ "http\:\/\/mydomain\.us\/lauren\.php" [R=301,L]0
Please sign in to leave a comment.
Comments
5 comments