How to point x.com -> y.com/x ?

xenxes

New member
Joined
Apr 16, 2012
Messages
2
Long term user of Directadmin, but this is my first question.

The issue:

(1) Point http://www.x.com to http://www.y.com/x; while
(2) URL remains as http://www.x.com.

I did a brief search and read that a pointer alias will accomplish this (I think), but only to the extent that x.com -> y.com, how do I point to a specified subdirectory?

Thanks in advance, and sorry if I missed the answer somewhere.
 
There may be several ways, none of them within normal DirectAdmin functionality as far as I'm aware. An easy way would be to add the domain as normal, but then remove its public_html and create a symbolic link instead to the path you wish, e.g. /home/user/domains/x.com/public_html -> /home/user/domains/y.com/public_html/subdir
 
That's a great idea, TY! I'll have to see about getting SSH access to my host, don't think you can do it via FTP.
 
In case you have no SSH access, you might want to write a simple shell/PHP script and run it once with cron/HTTP
 
Back
Top