Yes, you only need to move the directory. It will not affect your code or database.
If you are not sure, you can copy and paste the directory to the new user's account first, then test the site from the new user's account. To do that:
- make sure domain.com are in both user's accounts.
- go to DH panel --> Domains --> Manage Domains --> Web Hosting --> Edit, simply switch the user to the new user
- wait a while and open your website again. You will be seeing the website from new user's account. Now you can do the testing.
The way it works in DH is that if the domain is under firstuser's control. It looks for /home/firsuser/domain.com. If the domain is under seconduser's control, it looks for /home/seconduser/domain.com
Save $97 (MAX Discount) with code: [color=#CC0000]97YES[/color] [url=http://dreamhost.com/r.cgi?296804/signup|97YES]Sign Up NOW[/url] or More Codes Here