Hi. Our ModX guy went on to greener pastures and we've been OK maintaining the site until now. I've searched the forums and web but can't seem to find the answer for this though it probably exists. We want a single ModX Revo site to respond to something.domain.tld and something-else.domain.tld. We get a generic 404 error when we try something-else.domain.tld. Thanks for your time.
-
☆ A M B ☆
- 24,524 Posts
That would have to be done in your .htaccess file. Probably a rewrite with a
http://en.wikipedia.org/wiki/HTTP_302 redirect.
Abrodkin,
There are a couple of ways to handle this. This depends on what you have access to for your host. What you are looking for is "subdomains in modx". The easiest one I know of is utilizing Virtual Hosts (this just means sub-domain from a folder[essentially]). On my host, they don't call it virtual hosts, but that is what they use.
RTFM has a great tutorial regarding setting up the MODX side and which files you need in the folder (only 3). Here is the url:
http://rtfm.modx.com/display/revolution20/Creating+a+Subdomain+from+a+Folder+using+Virtual+Hosts