Jump to content

Recommended Posts

Posted

Hi Bruce,

 

:( ;) Welcome to the Family :dance: :dance:

 

I'm not sure I fully understand teh question. You can not change the root structure - but you can put all the files into a directory (or subdomain) if you want to. then they would be in /home/username/public_html/mywebroot

Posted

:( Welcome to the Family Bruce ;)

 

and your new home!

if you mean that you have installed a script like phpnuke in a folder and want anyone redirected to that folder automatically,

you can do that in cpanel

just put any index.html file in the public_html folder

Then in cpanel > redirect

put index.html in the first window and in the second window

put domain.ext/folder/index.php

then you will see that requests for

domain.ext/index.html wil be redirected to domain.ext/folder/index.php

if this is not what you need, please ask, and we will try to help.

 

We really are like family here.

So if you need anything,

just ask your new family!

We love to help :dance:

Posted

Thanks for your quick responces.

 

To clarify. I want to be able to change the directory location for the root context of my domain. An example:

 

If I browse to http://****/ I am served pages from somewhere like /.../mydomain/public_html/mywebroot

 

The Apache directive to do this for my virtual host would then be:

DocumentRoot "/.../mydomain/public_html/mywebroot"

 

Some of the reasons for doing this are:

- Allow for website redesign without having to move every file to a new location.

- Allow testing of an application in a subdirectory first. When test is complete, Change the DocumentRoot to the subdirectory.

- Helps keep the public_html from being cluttered with many files. For example if I want my osCommerce catalog in the document root I will have a multitude of files in public_html. I would rather they be in a subdirectory called oscommerce.

 

Thanks,

Bruce

Posted

Welcome aboard, Bruce :huh:

 

And do let us know how that works out, I didn't know that nice trick Dick suggested. Very cool, thanks Dick! Thumbs Up

Posted

Bruce,

 

Welcome home and thanks for making our TCH-Bruce happy. He doesnt have many friends so it is good to see him excited. :huh:

 

Once again, happy to have you aboard. Thumbs Up

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...