|
|
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 | |||
![]() |
|
|
When I set up a subDomain, it automatically assigns a folder to it.
QUOTE
sub.webiste.org --> webiste.org/subThis is fine for only basic configurations. Instead, I need to specify the path, like this:
QUOTE
sub.webiste.org --> webiste.org/www/sub/zzzI 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?
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.
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:
- site.domain.org/index.php
- site.domain.org/forum/phpbb2/index.php
- site.domain.org/forum/phpbb2/login.php
- forum.domain.org
- 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.
Similar Topics:
How To Hide Your Folders
Strange Folders In My Web Root Fold...
Undo Function For Folders In Window...
How To Park .de Domain please help (15)
|
(0) Imagemagick Convert Directory
|
Loading...
HOME 





MOWG-Pro V2.1 (Part 1 of 4)
MOWG-Pro V2.1 (Part 2 of 4)
MOWG-Pro V2.1 (Part 3 of 4)

