Symbolic Link

magmall

Verified User
Joined
Jun 25, 2004
Messages
27
Location
los angeles
is there a way in directadmin to set up a symbolic link so that a subdirectory becomes the main public_html directory?

basically we installed some software in a subdirectory and I don't want to reinstall the software. so the easier thing is to just point the domain to the subdirectory right?
 
I don't know what you've put where, so I can't guarantee this won't create other issues, but:

The easiest way to do it is with a redirect using .htaccess.

Jeff
 
You can also put in your main folder a file index.php with the following contents

Code:
<?php
header( 'Location: [url]http://www.yoursite.com/subdirectory[/url]' ) ;
?>

Edit the location to the correct url of course.
 
Last edited:
Back
Top