Jump to content

Recommended Posts

Posted (edited)

I would like to know if it is possible to do the following using CPanel:

  • Create a subdomain (ie: bob.familyname.com)
  • Point it to a subfolder multiple folders deep within the domain (ie: bob.familyname.com -> /family/usa/bob)
  • Continue to display the subdomain in the address bar

I know with CPanel you can create a subdomain and then redirect that subdomain to a subfolder within the domain using the full URL, but doing this no longer displays the original subdomain - it shows the redirect location. I would like to still display the original subdomain name.

 

If this is not possible via CPanel, I would appreciate someone fluent enough in .htaccess to explain to me how to perform this action. I've attempted on my own, but I can't get the results that I'm told I should be (difference in server configuration, maybe? idk).

 

EDIT: Typos :)

Edited by Mixerguy
  • 2 weeks later...
Posted

it's not a standard question certainly :lol:

 

I missed the questions first time - sorry.

 

I can think of 2 only ways.

 

The first would be to use .htaccess to redirect internally, but you would also have to code the pages specifically to understand the redirects etc.

 

The second (and much easier) is to create a symlink for bob to /home/cpuser/public_html/usa/family/bob (or wherever) - then it should work. You would need to ask the help desk to set this up for you.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...