To answer your question:
Quote from: indie at Apr 12, 2006, 01:00 PM
One, when you say point the sub at the root are you talking about an htaccess redirect?
Nope, you need to use virtualhost on linux (I think that’s what they call it). Basically when you setup a new domain to your hosting server, usually you can choose the root directory for that specific domain/subdomain, and most of the time this will be on a different folder from all the other domains/subdomains that you host. But if it’s allowed on your host, you can set the root folder path to use the same folder with your MODx installation. So if you have a MODx installation on /path/subfolder/modx/ for your domain.com, then you need to setup your subdomain.domain.com to use the same path for its root folder /path/subfolder/modx/. But most of of the time, some hosting companies doesn’t allowed you to define your own root path for your domain/subdomain. Contact your hosting provider for more info on this.
Two, is the process regarding aliases or any of it different when attempting to use an addon domain instead of a regular sub?
Everything will be the same, but the alias path will be different when you access the site using your subsite domain/subdomain. Basically if you have a virtual alias generated by MODx as this /path_for_subsite/home.htm, then this hack will remove that path_for_subsites path when you access it using your subsite domain/subdomain, but if you access it using the domain that you’re not setting up as a subsites, it will have that path. One more thing, this hack will prohibit any access outside the path given. So in the example above, you cannot access any folders/docs adjacent to path_for_subsite, but you can access that path itself and all its chil docs and folders.
Three, Does this hack actually use the sub directory for anything, could it be a chmod issue?
It doesn’t involve any subdir at all, so you don’t have to worry about it.
Download the one on
http://svn.djamoer.net/?do=browse&project=MODx&path=/trunk/hacks/subsites/ for the latest working version that fix quite a few bugs and add a few small features on it.
Have fun