Welcome to WebmasterWorld Guest from 50.17.16.177

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

Move Development Directory Up

     
9:09 pm on Jan 28, 2004 (gmt 0)

New User

10+ Year Member

joined:Oct 20, 2003
posts:9
votes: 0


I'm aware that there are several ways to do this. Which is the best? and why?

I've developed a new web site in www.domain.com/dev . In the *nix shared hosting environment, the tree looks like this:
/public_html/dev/

Well, I'm finished with the development. Do I just delete all of the old web site's files in /public_html and copy everything up? Do a domain redirect?

In other words, how can I promote the contents of the /dev directory up one level?

11:52 pm on Jan 28, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 23, 2000
posts:1277
votes: 0


I would just copy everything up to root and you should be good to go.
12:36 am on Jan 29, 2004 (gmt 0)

New User

10+ Year Member

joined:Oct 20, 2003
posts:9
votes: 0


OK!

However......

If there are two index files (index.html and index.php) in the domain root, which will be read first?

1:12 am on Jan 29, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Mar 8, 2003
posts:1429
votes: 0


Depends on the order they are listed in the DirectoryIndex directive of the configuration file for the server (assuming its Apache).

Suck it and see...

2:31 am on Jan 29, 2004 (gmt 0)

New User

10+ Year Member

joined:Oct 20, 2003
posts:9
votes: 0


OK! Thanks!