Loading...


bookmark - Subdomain Folders How can I specify a new folder for my subDomain?

Subdomain Folders - How can I specify a new folder for my subDomain?

 
 Discussion by Takkun with 3 Replies.
 Last Update: November 23, 2006, 8:24 am
 
bookmark - Subdomain Folders How can I specify a new folder for my subDomain?  
Quickly Post to Subdomain Folders How can I specify a new folder for my subDomain? w/o signup Share Info about Subdomain Folders How can I specify a new folder for my subDomain? using Facebook, Twitter etc. email your friend about Subdomain Folders How can I specify a new folder for my subDomain? Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Edit: This issue has been solved. See last post.

When I set up a subDomain, it automatically assigns a folder to it.

QUOTE

sub.webiste.org --> webiste.org/sub

This is fine for only basic configurations. Instead, I need to specify the path, like this:

QUOTE

sub.webiste.org --> webiste.org/www/sub/zzz

I can do this easily with apache (my localhost test-rig; adding a virtualhost) and I thought I could do this in CPanel by specifying the path for a subdomain. However, this CPanel setup pre-defines a folder and I dont know how to change it! I tried a subDomain redirect but it just removes the -short- subDomain url with the real -longer- one.

Any ideas, questions, thoughts?

   Tue Nov 21, 2006    Reply         

You're only refering to creating ONLY the sub-domain (and not add-on domain).

You can create website.org/sub and place index.php in that folder

CODE


<?php
header("Location: http://www.website.org/sub/zzz");

exit;
?>

And create a normal index file under folder sub/zzz and starting building your site.
This is the simplest solution.

Another way of doing things is to use Site Management Tools / Manage Redirects to divert traffic going to set location. This is the best way of doing your redirect.







   Tue Nov 21, 2006    Reply         

Thanks for the suggestions. Yes you are correct: I am taking about a sub-domain and not an add-on domain. Hmm, I never thought of that php-method; but I dont want any re-direction to other urls (I explain this in the last paragraph of this post).

After a bit of research last night, I discovered what I'm looking for: Symbolic Links link1, link2 (I'll try it in SSH, if I can "someday" connect to the server!).

My Situation:
Lets say I have three files:

  1. site.domain.org/index.php
  2. site.domain.org/forum/phpbb2/index.php
  3. site.domain.org/forum/phpbb2/login.php
...and 2 subDomains:

  1. forum.domain.org
  2. site.domain.org

Naturally, my forum's subDomain needs to act as if the phpbb2 directory is it's root directory. When I click on a link that says "forum.domain.org/login.php", then that’s the exact URL I want to see in my Address Bar (after the page loads). Furthermore, this needs to work for all files in the phpbb2 folder (all pages, images, etc...). This would be a very SIMPLE task if I could just specify the root directory for any given subDomain. Well, maybe I'll just have to ask support to do it for me. :blink:

   Wed Nov 22, 2006    Reply         


Solved! I emailed tech support (technical@computinghost.com) and asked if they could change my subDomains root folder. Apparently it's quite a simple procedure for them. Within 12 hours later, it was done and works perfectly! The new root for the subDomain also shows up in CPanel/SubDomains page. Kudos to Stanley in tech support!

   Thu Nov 23, 2006    Reply         

Quickly Post to Subdomain Folders How can I specify a new folder for my subDomain? w/o signup Share Info about Subdomain Folders How can I specify a new folder for my subDomain? using Facebook, Twitter etc. email your friend about Subdomain Folders How can I specify a new folder for my subDomain? Print
Reply / Comment New Discussion / Topic Share / Bookmark E-Mail a Friend Print

Similar Topics:

How To Hide Your Folders

here is something that can be extremely useful if you are using a shred computer QUOTETo hide folders you can simply disguise the folders as virtual folders. Some examples of virtual folders are the Fonts folder, the Recycle Bin, the Control Panel. When you try to open disguise ...more

   22-Feb-2006    Reply         

Strange Folders In My Web Root Fold...

Updating my site and looking through the logs my eye caught a visit to a page called "klux.php" i viewed the file which was in a subfolder under "iqici" and as i suspected it was full of references to the KKK. Needless to say this isnt something i want on my website. ...more

   22-Jan-2010    Reply         

Undo Function For Folders In Window...

Hi, I use Windows 7 Ultimate, and for some odd reason, while trying to delete a subfolder from my D:\ drive (a second hard drive used for backups etc.), a great deal of folders were wiped off, while I only wanted to remove the one. I also made the mistake of pressing & ...more

   07-Aug-2010    Reply         

How To Park .de Domain please help   How To Park .de Domain please help (15) (0) Imagemagick Convert Directory   Imagemagick Convert Directory