|
|
|
|
![]() ![]() |
Oct 23 2006, 10:30 AM
Post
#1
|
|
|
Super Member Group: [HOSTED] Posts: 760 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 |
I just add for the first time a new subdomain to my account with the cPanel and it is very easy as simple insert the name and submit, how can i setup the default folder of this new subdomain??? because I want to assign this to a different folder or i just copy all the files to this default folder.
Best regards, |
|
|
|
Oct 23 2006, 12:38 PM
Post
#2
|
|
|
the Q Group: [HOSTED] Posts: 1,047 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
I read twice what you have written, but I still am not quite sure what you want to do, what kind of a result do you want from doing something?
|
|
|
|
Oct 23 2006, 01:06 PM
Post
#3
|
|
|
Advanced Member Group: Members Posts: 190 Joined: 18-August 06 From: Fun.NiranVv.Com Member No.: 15,325 |
I just add for the first time a new subdomain to my account with the cPanel and it is very easy as simple insert the name and submit, how can i setup the default folder of this new subdomain??? because I want to assign this to a different folder or i just copy all the files to this default folder. Best regards, I think, you are asking about, adding files in the subdomain only! Right?? If you create one subdomain say, "demo" it will create one new folder under your man domain named "demo" you can find that "demo" folder under "public_html" so, just go to: "public_html/demo" and uyou can upload the files inside that folder! You can create one default html file say: "index.html" under thae new folder (here "demo") So that the file named "index.html" can be displayed by typing "www.subdomain.domain.com" |
|
|
|
Oct 23 2006, 04:19 PM
Post
#4
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 |
If you set up a subdomain with the name of "forum" as in forum.TavoxPeru.com then your subdomains folder is /home/username/public_html/forum/
You cannot set up another folder since the server will only read /forum when that subdomain is requested. As a result, your subdomain contens are also accessable via www.TavoxPeru.com/forum/ If you want to create an ftp account for this subdomain only, that can also be done. If this doesn't aanswer your question, please give more information. vujsa |
|
|
|
Oct 24 2006, 01:56 AM
Post
#5
|
|
|
Super Member Group: [HOSTED] Posts: 760 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 |
Quatrux sorry for dont understand my post, what Niran says is correct, i want to do that, simply add my files for my newly subdomain and vujsa thanks for your reply.
Now, i will explain better what im trying to do following the example given by vujsa.
Or, can I use some kind of redirection either with an .htaccess file or with the cPanel???? Best regards, |
|
|
|
Oct 24 2006, 02:17 AM
Post
#6
|
|
|
Absolute Newbie Group: Admin Posts: 888 Joined: 20-February 05 From: Indianapolis, Indiana, USA (Midwest) Member No.: 2,714 |
Quatrux sorry for dont understand my post, what Niran says is correct, i want to do that, simply add my files for my newly subdomain and vujsa thanks for your reply. Now, i will explain better what im trying to do following the example given by vujsa.
Or, can I use some kind of redirection either with an .htaccess file or with the cPanel???? Best regards, Well, there are .htaccess options but it you just want the file contents moved then there is a better option. Delete intivoyage/ and then rename alex/ to intivoyage/ If you require a cgi-bin in intivoyage/, then simply add a folder with that name there. If this isn't what you want to do, then we'll investigate other options. The server just looks for intivoyage/ as the root directory of intivoyage subdomain. Usually when I do a reinstall or difficult upgrade, I just rename the original folder and create a new fresh folder to start from. Then if there is a problem, I can always revert to the last good website by renaming a couple of folders. Hope This Helps. vujsa |
|
|
|
Oct 25 2006, 07:02 PM
Post
#7
|
|
|
Super Member Group: [HOSTED] Posts: 760 Joined: 8-April 06 From: Lima - Peru Member No.: 12,579 |
Well, there are .htaccess options but it you just want the file contents moved then there is a better option. Delete intivoyage/ and then rename alex/ to intivoyage/ If you require a cgi-bin in intivoyage/, then simply add a folder with that name there. If this isn't what you want to do, then we'll investigate other options. The server just looks for intivoyage/ as the root directory of intivoyage subdomain. Usually when I do a reinstall or difficult upgrade, I just rename the original folder and create a new fresh folder to start from. Then if there is a problem, I can always revert to the last good website by renaming a couple of folders. Hope This Helps. vujsa Thanks a lot, i will try the second option because it is more simple and i dont have much experience dealing with .htaccess files, so then i will post the results. Well, almost everything works fine with the exception that initially the images dont show, i need to access every one and then go back to see it correctly at the page and all of my links dont work because i use absolute paths so i need only to change this in my source files. Best regards, This post has been edited by TavoxPeru: Oct 25 2006, 07:27 PM |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 7th October 2008 - 09:09 AM |