Jump to content

Recommended Posts

Posted

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 )

Posted (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 by TCH-Rob
Posted

yes this is true for the configeration you have now but it can be done

Posted

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.

Posted
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 :P

Posted

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.

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...