Mixerguy Posted November 17, 2004 Posted November 17, 2004 Is there a way through Cpanel to set up a subdomain with the real address being www.mysite.com/subfolder/subdomain/ instead of www.mysite.com/subdomain/? I know that I could set up a redirect to the location, but then that will display the real address and not mask it with the virtual one (the subdomain home - subdomain.mysite.com). If it comes down to it, I don't have any issues manually editing my .htaccess files as I had to do that at my previous host, but I seem to have forgotten how to mask the real address with the virtual one. If I've totally confused you all, please let me know as it has been a while since I've learned mod_rewrite functions and I'm sure I'm forgotten the specific terms used to reflect what I'm trying to ask. I will try to rephrase it if need be. Quote
TCH-Rob Posted November 17, 2004 Posted November 17, 2004 Why not move the files from /sub/sub up a level? Quote
Mixerguy Posted November 17, 2004 Author Posted November 17, 2004 It's a family website and I have given each family member a portion of which to create their own easy to remember homepage (ie. john.doefamily.net). The thing is there is quite a few of them (big Italian family) so it's quite cumbersome to navigate through them all to get any folder that's not a family member - for instance, the /images/ folder. Hence, my desire to consolidate them all to one folder. EDIT: Spelling... Quote
Madmanmcp Posted November 17, 2004 Posted November 17, 2004 Hi mixerguy, I seem to be not understanding what your objective is here. For me a subdomain for each family sounds like the best way to organize your family websites and consolidating them into one would be more confusing. With a subdomain for each you can easily add or delete when needed and not affect any of the others because they reside in separate "folders". If they are all under one folder you run the risk of adding a file with the same name and wiping out something you shouldn't or deleting something by mistake because you forgot the filenames for a family member. As far as being cumbersome, not sure what you mean. When you create a subdomain for john and for bill, it creates a separate folder for each under public_html and you access them with the URL john.domain.com and bill.domain.com. You place the files for bill under public_html/bill and the files for john under public_html/john, if there are images you create a folder under both john and bill and reach them with a link to each, public_html/bill/images. Now to help organize the whole site you can use the main domain as the entryway to the whole family. You main page is just a big list of links to all the families subdomains. A link for "john" takes you to http://john.domain.com, the link for bill takes you to http://bill.domain.com. Now you just tell the family to remember there individual subdomain or the entryway http://www.domain.com and click on thier name in the list. Quote
LisaJill Posted November 17, 2004 Posted November 17, 2004 I think that the idea here is easier organization and finding of information. I can see doing this if I were to run a family website (which I am not!) - I have a fairly active website with many folders already; so having a family subdirectory with a folder for each member under that would make things a lot easier to find. Much like I havve folders under my images directory for images of a specific purpose. That said, I don't know hot to do this without using .htaccess. =/ Quote
Mixerguy Posted November 17, 2004 Author Posted November 17, 2004 Lisa has it pegged: I want to create a "family" subfolder and then put each subdomain's folder - representing each family member's subdomain - in that. Is there a better forum to ask this question in since it seems Cpanel can't do what I will require? I've got the redirect down, just I've forgotten how to mask the real URL with the subdomain. To break it down for those who still don't understand, when I go to joe.doefamily.net, it gets to www.doefamily.net/family/joe - just as it should - but it SHOWS that URL, too. That's where my problem lies: I would like to get to a place where it still says joe.doefamily.net. Quote
TCH-Rob Posted November 17, 2004 Posted November 17, 2004 Cant, subdomain.domain.com = domain.com/sub. If you want it another way you will have to redirect. I still do not understand the thought process though. why have; >/html /john /bill /biff /images /john /bill /biff When you can have; >/bill /images /john /images /biff /images and have it work as you want. Then again I have always given each category its own set of folders so I can link to images as /images/img.ext and not as ../images/img.ext joe.doefamily.net/images will always be doefamily.net/joe/images Thats how the naming structure works for subdomains. If one could do sub.sub.domain.ext I think it would work but then it would be bill.family.doefamily.com and not like you want anyways. That and cPanel cant do that. Quote
bellringr Posted November 17, 2004 Posted November 17, 2004 Rob, I think what he's wanting to do is clean up his top level folder. So, instead of seeing: /public_html /john /tony /karen /robert /elizabeth /bill /images /my_folder1 /my_folder2 He wants to make it cleaner and see something like this: /public_html /family /images /my_folder1 /my_folder2 and not have to scroll through all the family folders to find his own folders. Quote
Mixerguy Posted November 17, 2004 Author Posted November 17, 2004 The thing is it will be like the bottom example, but they will all be contained in a subfolder. I'm just looking to get them out of my root. Like this: >/chat /cpanel /family /bill /images /glenda /images /joe /images etc... /forum /images I could have sworn there was a way to with redirects to mask the URL with the subdomain. Quote
Mixerguy Posted November 17, 2004 Author Posted November 17, 2004 Talk about being in sync. Right on the nose, bellringr. So does anyone know how to do this? Quote
TCH-Bruce Posted November 28, 2004 Posted November 28, 2004 I don't think sub-subdomains are possible. Quote
Madmanmcp Posted November 28, 2004 Posted November 28, 2004 and not have to scroll through all the family folders to find his own folders. What are you letting everyone use, cpanel or ftp? If you create everyone a separate ftp account and only grant them permission to their specific folder (subdomain and not to root) this might accomplish what you want. Quote
TCH-Don Posted November 28, 2004 Posted November 28, 2004 cpanel will not allow sub sudomains. Bobs idea is the best if they are to have access to their folder. In that case they can use ftp and they be taken to their folder without the ability to go higher up. Quote
Mixerguy Posted December 19, 2004 Author Posted December 19, 2004 Its not a sub-subdomain. Its just a normal virtual subdomain, only I want it to point to a different folder location. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.