Questions tagged [subdomain]
The subdomain tag has no usage guidance.
17 questions
2
votes
1
answer
38
views
Expose certain content if on subdomain
Is this possible? I want domain.com and sub.domain.com to point to the same Craft installation. If you go to domain.com you see the normal site. If you go to sub.domain.com you are presented with a ...
0
votes
1
answer
122
views
How to install Craft 4 on a subdomain
I am using cPanel on a live server and want to install a new craft4 project in a subdomain for testing instead of having a local dev setup on my computer.
I have done this many times for craft 2 and 3....
1
vote
1
answer
260
views
Persist session from frontend login form to craft dashboard on headless install
Im im using craft as a headless CMS to power a Nuxt frontend.
I have a situation where i need the user to login on the frontend and then be redirected to a url within the craft CMS admin.
My question ...
0
votes
0
answers
53
views
I need help with trying to put craft on a staging subdomain
Hi can anyone tell me if these settings are correct? All I am seeing is a blank page on the front end and the admin url.
This is the structure I have locally and it all works fine:
/Root
- .env
...
3
votes
1
answer
297
views
Does "preprod" count as a dev sounding sub-domain?
I would like to avoid the licensing error modal on a preproduction environment. Would preprod.random.domain work?
1
vote
1
answer
230
views
Assigning the right license to the right subdomain
My client has 3 licenses, one for each of 3 subdomains. Let's call them A, B and C.
C has been derived from B, so has inherited B's license.key. How should I assign the correct license to C? Or does ...
1
vote
1
answer
40
views
How can I have translations for my subdomain
I setup Craft with one domain-1, now domain-1 has sites domain-1Global and domain-1NL. On this domain, the translations work perfectly.
But now I added a second domain, domain-2 with the sites ...
2
votes
1
answer
80
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
1
answer
698
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
2
answers
474
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
1
answer
305
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
1
answer
147
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
1
answer
521
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 ...
2
votes
1
answer
6k
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
1
answer
161
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
1
answer
599
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
2
answers
3k
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 ...