Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [subdomain]

The tag has no usage guidance.

2
votes
1answer
49 views

Is it possible to have one Craft install running

Can a Craft install run on multiple domains and/or subdomains? For example having the same Craft install running a blog Channel at blog.example.com and also an about Single at example.com
2
votes
1answer
374 views

Structuring site with multiple subsites

I have to make a website that has a single craft installation and one database. Now the site is for a company that owns several garages which should have their own subsite on a subdomain. It should ...
2
votes
2answers
312 views

Root domain config overriding subdomain config

My question is similar to Subdomain database configuration picking up root domain config, but I don't have any custom database variables. I have a staging site and a (forthcoming) production site on ...
1
vote
1answer
181 views

How do I preserve user sessions across subdomains?

I have defaultCookieDomain set to .site.com I am logged into www.site.com I expected to also be logged into sub.site.com (which is pointing to the same web root), but I'm not. What am I missing?
0
votes
1answer
130 views

How do I set up same site to use two different subdomains?

I have to set a the same site on two different subdomains. I have the two subdomains included in the config.php. But that doesn't seem to work. Is there any other configurations I need to set? // ...
0
votes
1answer
436 views

Getting Page Not Found error for my custom subdomain setup

I want to setup a new custom subdomain (va.domain.com) within the project of my existing domain (craft.domain.com) using homestead. So I referred to this this answer on craftexchange and followed all ...
1
vote
1answer
3k views

htaccess www to non-www with subdomain

Our client has (sadly) presented a new site URL as www.foo.bar.com instead of foo.bar.com. I need to use .htaccess to remove the www. The site works correctly if www is not prepended to the URL. This ...
1
vote
1answer
128 views

What needs updating when moving site from subdomain to root?

I've just moved a site from a subdomain to the root. So far I've updated the index.php file and also the settings in the control panel System->General->SiteUrl to reflect the new path of the ...
2
votes
1answer
523 views

Subdomain database configuration picking up root domain config

So I have this example database config setup $customDbConfig = array( '*' => array( 'tablePrefix' => 'craft', ), 'test1.foo.com' => array( 'server' => '...
3
votes
2answers
2k views

Is it possible to route a subdomain to specific template group?

We are looking for a way to route a subdomain to a specific template to use as a landing page. Is there a way to do this without routing through index.html and redirecting to the specified template ...