Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

How To Get Real Subdomains


5 replies to this topic

#1 delivi

    Trap Grand Marshal Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPip
  • 1,320 posts

Posted 12 January 2007 - 11:28 PM

I want to setup sections of my site as

Quote

using subdomains. Presently if I create a subdomain for the forum ,

Quote

then I can only set an redirection to the folder

Quote


I want the link to remain as forum.laschatz.info and not to change. How can I get this? Please help me.

#2 jlhaslip

    Insert Custom Title Here

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 5,040 posts
  • Gender:Not Telling
  • Location:Linux, DOS and Windows…the good, the bad and the ugly
  • myCENT:81.07
  • Spam Patrol

Posted 13 January 2007 - 01:40 AM

When you create an add-on domain to your account, it automagically creates the directory and that directory holds the files and folders for the add-on domain, so the link to subdomain.myaccount.trap17.com will resolve to myaccount.trap17.com/subdomain. Automagically.

#3 Saint_Michael

    $p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3

  • [MODERATOR]
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7,459 posts
  • Gender:Male
  • Location:9r33|\| 399$ 4|\|D 5P4/\/\
  • Interests:$p4m 0n j00 $h4m3 m3 0nc3 $p4m 0n m3 $h4m3 m3 7\/\/1c3
  • myCENT:71.24

Posted 13 January 2007 - 02:16 AM

A light alteration to haslip post ig I might, when you do the add on domain, vo to set up redirect and then type it out like you want it should hold the mydomain.mydomain.trap17.com look try that and see what happens.

#4 farsiscript

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 357 posts
  • Interests:... No More !

Posted 15 January 2007 - 10:25 AM

dear delivi use subdomain in cpanel for add subdomain for root domain , if you want add subdomain for 2nd domain , at first you must use addon domain for join domain to hosting then you must use subdomain sec at cpanel for add forum subdomain for new domain ,
in cpanel subdomain sec you can change domain name for adding a subdomain

#5 detportal

    Member [Level 2]

  • Kontributors
  • PipPipPipPipPip
  • 80 posts

Posted 19 January 2007 - 02:14 AM

delivi:

when you use the subdomain tool to create a subdomain for a folder that doesn't yet exist, that folder is created along with a cgi-bin folder within it. When you create a normal extra directory, this does not happen. Hence I believe the cgi-bin has something to do with the creation of a "real" subdomain. I'm just logging into my cpanel as I'm typing this...

The cgi-bin folder doesn't have any files/folders inside it. Either that, or they are invisible to the file manager (which I doubt).

So my guess is that you should try creating a folder called "cgi-bin" within the "forum" folder without any additional subdirectories/files inside the "cgi-bin" folder, and see what happens. The other members told you to set up a redirection through the cpanel (check out Albus Dumbledore's cpanel tutorial for more info on that). In my experience, I believe it does not automatically create a cgi-bin folder, rather it literally redirects (i.e the viewer types "forum.mydirectory.com" and is redirected to "mydirectory.com/forum"), as you said in your post. If a cgi-bin does not automatically create a proper subdomain out of that folder, I believe you will need to do both.

Conclusion: try experimenting with either of the two methods, if they don't work, combine them. If it still doesn't work, there's the sure-fire, slightly more timetaking method:

simply copy the files and folders you have in the "forum" folder into a new folder, with any name. then delete the "forum" folder. then use cpanel's subdomain tool to set up a new subdomain, letting it create the directory for you. then simply move the files you copied BACK. this will DEFINITELY create a "real" subdomain, where "forum.laschatz.info" will stay as "forum.laschatz.info". Simple!

hope it helps!

Edited by detportal, 19 January 2007 - 02:19 AM.


#6 QuickSilva

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 182 posts
  • Gender:Male
  • Location:Rotherham, UK
  • Interests:I love to help people in any way possible, if it's helping someone with some work, or going to someone's house to fix there computer. I am into Cricket, web design and much more other things. Bye!

Posted 19 January 2007 - 04:03 PM

Right this is how to do it:

Right first of all what you need to do is go into cPanel and create the sub-domain as normal. Once created, in the list of sub-domains and next to the sub-domain you just created there should be some brackets. Copy what is in between these. Next go to the FTP page, where you create FTP accounts, and click "[ Add FTP Account ]". On the next page type these details in:
Login: Any username. Not needed.
Password: Any password. Again not needed.
Quota: Leave as unlimited
Directory Copy and paste the sub-domain here. Say your sub-domain was "forums.mysite.com", put "/forums" in here.
Then click "create"!

Hope this helps.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users