|
|
|
|
![]() ![]() |
Nov 22 2006, 05:45 AM
Post
#1
|
|
|
Newbie ![]() Group: Members Posts: 0 Joined: 22-November 06 Member No.: 33,826 |
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? This post has been edited by Takkun: Nov 23 2006, 11:07 PM |
|
|
|
Nov 22 2006, 06:09 AM
Post
#2
|
|
|
Desperately seeking "any key" to continue... ![]() Group: Admin Posts: 3,486 Joined: 23-April 05 From: Trap17 storage box Member No.: 6,042 |
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. |
|
|
|
Nov 22 2006, 06:25 PM
Post
#3
|
|
|
Newbie ![]() Group: Members Posts: 0 Joined: 22-November 06 Member No.: 33,826 |
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:
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. |
|
|
|
Nov 23 2006, 04:24 PM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 0 Joined: 22-November 06 Member No.: 33,826 |
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!
|
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 10th October 2008 - 06:36 PM |