Setting up Concrete5 on multiple domains
Permalink
I've inherited a website that was built in concrete5. The live site runs on a primary domain with one subdomain for a separate section of the site. We havehttp://www.domain.com and something.domain.com. Everything seems to be working great there. They are using a Multiple Domains extension. I can in the admin panel that they have the subdomain mapped to a page.
In our development environment, however, the subdomain doesnt seem to be working. I have primary.devsite.com and something.devsite.com setup and i have updated the Multiple Domains settings in my admin panel to point to the something.devsite.com and is connected to a certain page, just like on the live site.
The problem is when i go to something.devsite.com, it shows the main page of the primary.devsite.com and doesnt seem to let me view pages from this subdomain.
Questions:
1. Is this not working because my primary devsite domain is a subdomain itself?
2. Do i need to make any DNS changes to get subdomains to work?
3. Does it matter if the ip address of the primary devsite and the something.devsite.com share the same ip address?
What should i do to resolve this problem?
In our development environment, however, the subdomain doesnt seem to be working. I have primary.devsite.com and something.devsite.com setup and i have updated the Multiple Domains settings in my admin panel to point to the something.devsite.com and is connected to a certain page, just like on the live site.
The problem is when i go to something.devsite.com, it shows the main page of the primary.devsite.com and doesnt seem to let me view pages from this subdomain.
Questions:
1. Is this not working because my primary devsite domain is a subdomain itself?
2. Do i need to make any DNS changes to get subdomains to work?
3. Does it matter if the ip address of the primary devsite and the something.devsite.com share the same ip address?
What should i do to resolve this problem?
Multiple Domains is our add-on and we would advice you to post any support related issues straight to the support section of this add-on:
https://www.concrete5.org/marketplace/addons/multiple-domains/suppor... (for 5.6 version)
https://www.concrete5.org/marketplace/addons/multiple-domains1/suppo... (for 5.7 version)
But to shortly answer your questions here:
1. No, there is no limitations to what you use as your primary domain
2. Yes, all your domains need to point to the same instance of concrete5, so if you are developing on your own machine, you'll need to edit your hosts file to point those domains to 127.0.0.1 (localhost)
3. No, there can be as many domains pointing to the same IP address as you'd like to.
Apart from the 2nd issue above (which I think is your problem here), here are some other pointers:
- Make sure that in the Multiple Domains settings your main domain is set correctly (primary.devsite.com)
- Make sure that the domains you've set in the "Domains" view are correctly written and match 100% the domains you are entering on your browser. Obviously, if the domain does not match, you will see the home page.
- If you have the "redirect unmapped to main domain" setting enabled, please try to clear your browser history completely and then restart your browser. Those redirections might come from browser cache in some occasions.
If you experience further problems, I would kindly ask you to post them in the support sections of the add-on.
Best regards,
Antti Hukkanen
Mainio Tech Ltd.