mr_lucas Posted June 18, 2004 Posted June 18, 2004 I was wondering if you could adopt this idea into your server origination of the file structure for sub domains. When creating we normally type the name of the url that the browser will look for like “Sub.domain.net” but in our file area it is just “sub “ Now what I would like to purpose is that the default naming be changed to “Sub.domain.net” for the folder as well Example (root ftp folder) Index.htm Image.gif Sports <------------folder Players<--------------subdomain folder Football<----------folder Baseball<-------- -folder Basketball<---------folder Now without the arrow pointing to them it would be hard to tell which is the sub domain right. Add about 3 to 6 more subs to the list and a person might get confused of which is the sub and mess his site up and possibly submit a trouble ticket because of it My Example (root ftp folder) Index.htm Image.gif Sports <------------folder Players.domain.net <--------------subdomain folder Football<----------folder Baseball<-------- -folder Basketball<---------folder Now when they see a folder named “Players.domain.net” they will know that this is a sub and not have to guess if it is or not even if they have like 20 subs they can always tell which is which (user friendly format Thumbs Up ) Quote
TCH-Rob Posted June 18, 2004 Posted June 18, 2004 (edited) Ok, someone stop me if I am wrong. This is not going to work. All a subdomain is doing is being an alias for a folder beneath the root folder. Changing it to your example would make the URL become Players.domain.net.domain.net. It is all based on command line and UNIX naming conventions so unless UNIX command line has become user friendly I cant see this being a possibility. Edited June 18, 2004 by TCH-Rob Quote
mr_lucas Posted June 18, 2004 Author Posted June 18, 2004 yes this is true for the configeration you have now but it can be done Quote
TCH-Rob Posted June 18, 2004 Posted June 18, 2004 I am not staff but I believe everything we do is based on cPanel for the configuration, well WHM. As far as I know it can not be made to work any other way. Quote
MikeJ Posted June 18, 2004 Posted June 18, 2004 The file structure for the subdomain creations is dictated by the control panel. cPanel doesn't really provide us enough flexibility to effectively change that. But your organization structure isn't a bad idea. It might be a good item for suggestion at cpanel.net for a future update. Quote
mr_lucas Posted June 19, 2004 Author Posted June 19, 2004 But your organization structure isn't a bad idea. It might be a good item for suggestion at cpanel.net for a future update. well i went to the cpannel site to see i can submit it and it asked for Administrator type of inforormation so what i says is for TCH-MikeJ or somebody of the staff to submit it Quote
Deverill Posted June 19, 2004 Posted June 19, 2004 If you don't mind the address folks see after it gets to your page you can do this: Set up a normal subdomain ("sub") for domain.com Set up the one you want sub.domain.com with the files you want to show. Go to your subdomain section of cPanel Go to Redirects Redirect sub.domain.com to http://domain.com/sub.domain.com/ This will work with two things to consider. One is that you will have an "extra" sub folder along with sub.domain.com. The other is that after the visitor goes there the address of the page will show in the browser's address bar as http://domain.com/sub.domain.com/ The reason I had to keep sub as a folder is that there needed to be a place cPanel could write the .htaccess file to do the redirect. Perhaps someone else knows enough about htaccess to do it at the main domain folder level and you wouldn't need this sub folder. If you can live with this then there is no modification necessary. 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.