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.

0
votes
0answers
20 views

Subdomain don't work

I have a big website in 6 languages. Reachable at bar.com Now I want to create a Landingpage for a subdomain. So I created a new Site in Craft named "landingpage" and set the basic url to foo.bar.com ...
2
votes
1answer
41 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
0
votes
0answers
49 views

Duplicating site to a subdomain

Folks: The hosting company is migrating a client's site to a new server with PHP 7 (currently on PHP 5). I've requested the subdomain temp.domain.com to test everything before the final move. The ...
2
votes
1answer
348 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
296 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
171 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
125 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
0answers
232 views

Multiple environments, craft folder and subdomain

My client has a shared hosting that puts subdomains into subfolders under public_html. For example: /home/xxxxxx/public_html/dev/ where "dev" links to dev.mysite.it My project structure is: craft ...
0
votes
1answer
417 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
2k 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
123 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
505 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 ...