setting documentroot for subdomain

apenkont

New member
Joined
Oct 5, 2011
Messages
2
Hi,

Currently im running opencart on my website.
And I would like to use the multiple store feature of opencart.

So I created a subdomain for test.com named test.test.com
Now I need to specify the documentroot to my original opencart installation for it to work.

How do I get this to work?:confused:

greetings,
confused directadmin user
 
Yes, but the problem is that there is no box or something to fill that in...
There is no option to direct /specify the documentroot of/ the subdomain to my opencart installation.

Thanks for the quik reply
 
You should either ask your hosting provider to help you with the issue, or try and use mod_rewrite (if possible of course)... or create

/home/USER/domains/test.com/public_html/test/index.php with

PHP:
<?php
require_once('../index.php');
?>

Replace index.php with an actual file name which serve all the requests.
 
chaneg default document root for all subdomains

is there any way to set document root for all subdomains to a different path like: (www/path/subdomains) using rexes or something else?
something like this?
|*if SUB="*"|
|?DOCROOT=/home/Domian/domains/Domian.com/public_html/path/*|
|*endif|
 
Back
Top