symlink to the httpdocs

belservice

Verified User
Joined
Aug 4, 2004
Messages
13
I have a dedicated server and i'am hosting 2 domains on it. Each with a diffrent ip adres. I am redirecting one domain to the other. But this is not search engine friendly. I alredy trie to use a frame to redirect to the webshop but this is also not search engine friendly.

I heard about setting up one domain to symlink to the httpdocs of the other domain.

Is this possible in DA? and how to set this up?

Pls help me out wit this.


Thanks and regards.
 
you could symlink the dir but not sure if this will complicate anything (i doubt it will).

ssh in and su - to root.

i would just symlink their public_html dir to another the other domain.

cd /home/<username>/domains/<domain name you want to forward to the other>/

renamed the public_html folder
mv public_html public_html_bak

symlink to the domain you wish to forward too.

ln -s ./public_html /home/<username>/domains/<domain to be forwarded too>/public_html

restart apache

service httpd restart

this should do it, test it out. and make sure you replace anything in <> with your own info.

if it doesn't work simply remove the symlink you just made and rename your backed up public_html dir.
 
Yes but how

Thanks Vandal for you're fast reply.

Could you pls explain to me how to symlink to the other domain? Where in DA do i need to click? I am not an advanced user.

Thanks
 
You can't create links through DirectAdmin's FileManager to my knowledge. You will have to do it through ssh ;)
 
What is ssh?

What is SSH? normaly i just use my login name to acces the Cpanel! So what about using SSH? Like i said i'm not an advanced user.

Thanks.
 
Back
Top