PDA

View Full Version : How do you change the directory root



philmcdonnell
06-30-2004, 09:46 AM
Hello,

I need to change the folder that a domain points to. It must be simple but I can't figure it out.

Currently the domain points to its root folder but I need it to point to a subfolder named /shop/

So when a user types www.domain.com it goes to www.domain.com/shop/


Thanks,
Phil

nobaloney
06-30-2004, 10:58 AM
You can create a stub index file in the public_html directory to load the file you want.

Or you can use an html redirect command.

Jeff

philmcdonnell
06-30-2004, 11:25 AM
Originally posted by jlasman
You can create a stub index file in the public_html directory to load the file you want.

Or you can use an html redirect command.

Jeff

Can you explain stub?

The redirect is what I did for now, but that is not good for Search Engines. I was going to edit the httpd.conf for the domain but I read that it gets re-written everytime DA updates stuff. Why doesn't DA allow you to point your domain to a specific folder?

Thanks,
Phil

jeffery
06-30-2004, 11:42 AM
How about a symbolic link?

toml
06-30-2004, 01:18 PM
Originally posted by philmcdonnell
I was going to edit the httpd.conf for the domain but I read that it gets re-written everytime DA updates stuff. [/B]
It will re-write if you edit the domain, but I don't believe it will change the values that are already set, such as the DocumentRoot.

nobaloney
06-30-2004, 03:49 PM
Originally posted by philmcdonnell
Can you explain stub?
I meant a short index.html file that would do a redirect; perhaps a 0-size frame.

The redirect is what I did for now, but that is not good for Search Engines.
But none of my ideas may be search-engine friendly.

I was going to edit the httpd.conf for the domain but I read that it gets re-written everytime DA updates stuff. Why doesn't DA allow you to point your domain to a specific folder?

DA is designed for shared webhosting, and certain design decisions were made to make that easy. If you're doing something complex that normally isn't done in a shared webhosting enviroment you're stuck with doing things manually.

As you are with any control panel.

Check directly with DA to get definitive answers, or try things to see what happens.

Jeff

philmcdonnell
06-30-2004, 04:24 PM
Originally posted by jeffery
How about a symbolic link?

This is interesting, would this work/be ok to do?

Thanks,
Phil