Questions tagged [subsites]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
15 votes
2 answers
2k views

How to set multiple domains for one language

I have a multilingual site with Drupal 7 using subdomains like en.example.com to detect the language. Everything works like expected, but I have a mobile version of the website witch I want to be ...
  • 2,008
7 votes
4 answers
8k views

base_url for both http and https?

I have a site that is accessible both through http and https. I see the security review complains that base_url is not defined in settings.php. However when I define it as http://example.com, and ...
  • 109
6 votes
2 answers
1k views

Separate domain for specific content type

I haven't worked with multi-domain setups in the past so I did some research regarding the options for altering my website to accommodate for specific multi-domain needs. My immediate need is to have ...
user avatar
5 votes
4 answers
13k views

Exclude domain in robots.txt

Is it possible to exclude a domain name in robots.txt? I have a single Drupal site with multiple domains pointing on it. For example our dev and staging server are being crawled by Google when our ....
  • 1,831
5 votes
1 answer
4k views

Setting $cookie_domain variable for specific folder structure

During configuration of Ckeditor I have to setup the cookie domain variable. I have added my site in subfolder like www.example.com/mynewsitefolder, where www.example.com is my current and running ...
  • 3,956
5 votes
1 answer
2k views

How do I implement cookieless subdomain?

Cookieless subdomains are considered beneficial for a number of purposes: They save some network overhead [1], and they are required for certain types of caching [7] (e.g. reverse proxy like Varnish)....
4 votes
1 answer
79 views

Is the "www" in the database for the site confguration?

I have recently helped launch a site and there are some cross domain issues between "www.website.com" and "website.com" I was chatting with Cloudways tech support and he mentioned that if I remove ...
3 votes
2 answers
433 views

Is it reasonable to run hundreds of sites by one Drupal core?

There are more than 100 sites that are supported by our company and they can be presented as sub domain as well. from technical perspective is it reasonable to run all of these sites using only one ...
  • 3,864
3 votes
2 answers
505 views

Make blog on a subdomain

I need some help figuring this out. I have a main site mysite.com on Drupal 7. I want to build a blog for it and want for people to access it using blog.mysite.com. So basically it's the same site (so ...
3 votes
3 answers
4k views

Best way to create subsites?

What's the best way/module I can use to automatically create subsites, like drupalgardens.com. Is there a module to do it? Can I use drush for this?
  • 645
3 votes
4 answers
500 views

Drupal Sub Sites with or without Aegir

We're currently using Aegir to manage sites, essentially, domains and sub domains. However, we have a need for sub sites. For e.g., domain.com would the parent, and the children sites would be domain....
  • 759
3 votes
1 answer
698 views

point a subdomain to a page without using domain module

I want to add a subdomain to my site (mysite.local) so it is, x.mysite.local and I want that to land on a custom page, i.e. a node, a view. I do not want to use the domain module because it has way ...
  • 2,359
3 votes
2 answers
587 views

How to restrict content access within a site?

In a community site. I want to restrict users to have some private parts of the site like forum, groups and discussion board with their scope (should not be visible to others). That is a specific ...
  • 163
3 votes
1 answer
1k views

Single site vs Sub-sites vs Multi-site installation + Scalability

I am beginning a new Drupal project that needs to very scalable and I need to determine what the structure should look like based on the current and eventual project needs. I have previously used all ...
  • 31
3 votes
1 answer
318 views

Need to change the subdomain URL structure - D7

Need to change the subdomain URL structure from: sub1.example.com sub2.example.com To: www.example.com/sub1 www.example.com/sub2 Is there any module to do this in Drupal 7 If there is no other ...
  • 1,547
3 votes
1 answer
693 views

What are the appropriate configurations for the Subdomain module on Window 7 running XAMPP?

I have installed the Subdomain module (v 6.1.7), and I'm configuring a subdomain for testing on localhost. I have been tearing my hair out for days now, trying to get this module to work on my PC - ...
  • 125
2 votes
1 answer
2k views

Best way to backup and restore the databases of a Drupal 7 multisite using Drush?

I'm looking for an easy way to backup (and if needed restore) the databases of a Drupal multisite using Drush. Drush command I use to backup all the databases: drush @sites sql-dump --result-file --...
2 votes
2 answers
206 views

Is aegir a good choice for me?

I want to use aegir for a website that users can create their own sub-sites. From aegir installation guide: when a new site is installed, the web server will be automatically configured (vhost) ...
  • 645
2 votes
1 answer
6k views

Why are URLs with non-existing subdomains not triggering an error 404?

One of my websites ignores random subdomains. The site doesn't have any subdomains but it will happily accept URLs such as fjiddifjdskdjf.example.com or dsfkljsdflsdjfds.example.com. In both cases, it ...
  • 215
2 votes
1 answer
664 views

Combine subdomains into one domain

I have main website ABC.com with 5 subdomains on Drupal 6.2 The problems I'm facing are bellow:1 - It is difficult for user content to migrate across the subdomains. Detail: There are tabs on the top ...
  • 331
2 votes
1 answer
516 views

How to make a menu link on a subdomain use the main domain as base_url

I have a site example.com with a subdomain sub.example.com. In my apache config both domain and subdomain point to the same directory, containing the Drupal installation. That is as far as i went to ...
2 votes
1 answer
1k views

Google Analytics configuration setting for Drupal multisite (domain and submain)

I am working on a Drupal mulsite project (using single database) and using Google Analytics module for this. I have follow the below steps for GA configuration: Created a domain name example1.com ...
  • 181
2 votes
1 answer
257 views

Use username password on different subdomain

I now have a website which is using drupal. This is the 'main' website on the www domain. I would like to build a small gimmick which is only accessible to my users. This gimmick site is probably not ...
  • 129
2 votes
2 answers
2k views

"Redirect Loop" when creating a multisite

I know there are a few questions related to this one, yet I haven't been able to answer mine. I want to develop 2 websites pointing to the same Drupal core files, so : drupal1.example.com should ...
  • 158
2 votes
0 answers
57 views

Sites module: get the unprefixed, global URL

Drupal beginner here. I'm working on a site which uses the Sites module to create location-specific URL's for all nodes. So say we have three locations: New York, London and Hong Kong. Plus Global of ...
2 votes
1 answer
267 views

Should I use Spaces or Domain Access to share & separate content between subdomains?

I realise that without the following additional information the title question is too broad. I have multiple sibling Drupal 7 sites with their own domains that I wish to consolidate into a single ...
  • 1,652
2 votes
1 answer
100 views

Which Rules Event can I use for automatic login from main site to sub site with same database after clicking on a link?

In the home page of main site, I am listing all the products. Buyer has logged into the main site and clicks on any product title or image, then I take the buyer to the corresponding sub domain ...
  • 1,278
2 votes
0 answers
294 views

Domain Access and websites for multiple countries

I currently have this url structure for nodes town.domain I would like to add country into that url to make it domain/country/town/type. My question is how do I achieve this on drupal 7? practical ...
1 vote
2 answers
367 views

Can drupal be installed on a subdomain and used on the main domain?

I was thinking about installing Drupal on admin.myexample.com for clients to access an add and edit news posts & products. Then just using myexample.com as the main site. Calling the database and ...
1 vote
1 answer
113 views

How to embed existing website in my Drupal 8 site?

I have a site I created with Drupal 8, lets say http://falzon.xyz/. Elsewhere, I have a site created with Jekyll, a bunch of static pages linked to each other visible http://www.elina-noe.eu/). I'd ...
  • 982
1 vote
2 answers
2k views

How would i redirect a user after registration to his subdomain site

I want to redirect a user after successful registration maindomain.com to open his site in a new tab. His site url will look like this newuser.maindomain.com. (username.maindomain) Any Suggestions?
  • 1,278
1 vote
1 answer
1k views

Can I clear cache only for particular domain / URL?

I'm using domain module with several domains. With drush you can clear cache using cc command. I have only one database for all domains. I'm wondering can I clear cache using only specific domain (...
  • 349
1 vote
2 answers
4k views

For Drupal 7 sub-domain installation is sites.php the same as 6's use of symbolic link folder?

I have a working Drupal 6 using a shared Drupal install on a shared Linux server. I've just installed D7. I'm not sure if sites.php is set up correctly (see below). And I can't find good information ...
  • 377
1 vote
2 answers
144 views

How to name multi-sites for different environments (dev and staging)?

I have a Drupal project that is a multi-site setup. I currently have my sites named like so: sites/site1.example.dev sites/site2.example.dev sites/site3.example.dev This is fine for working locally ...
  • 147
1 vote
2 answers
125 views

User defined domains

how can I create a user defined domain? E.g. user one will select for his shop the domain "shop1.example.com". User two will select "shop2.example.com" etc. How can I do this?I was thinking of Domain ...
  • 2,398
1 vote
1 answer
319 views

a non existing subdomain is added to image urls

I have some images in my home page and from time to time the URL of these images get changed somehow and a subdomain is appended to it automatically. For example: www.mysite.com/sites/default/files/...
1 vote
2 answers
847 views

Base URL issue in Subdomain

I have my main site as example.com and also I am running the below subdomains with help of subdomain module one.example.com two.example.com I have created the html block(admin/structure/block/add) ...
  • 23
1 vote
1 answer
79 views

Drupal multi-site subdomain and subpath going to same site

Is it possible for Drupal to handle both subdomain and subpath for a single site in a Drupal multi-site environment? For example: foo.example.com ---> 'foo' example.com/foo ---> 'foo' Is ...
1 vote
2 answers
205 views

Which Rules Event in the Rules module gets triggered after clicking on a link?

If I click on a link in a node, I want to know which Rules Event in Rules gets triggered that I can use. Notes: On the home page, there are a lot of views blocks. So in that node title (or image or ...
  • 1,278
1 vote
0 answers
36 views

Multiple sites in same subfolder

I have multiple very similar drupal sites (each for a specific year of some project): 2012.somain.tld, 2013.domain.tld, etc. Their files are organized in subdirectories (2012, 2013, etc.) of ...
1 vote
0 answers
577 views

Domain Access Module not working for second domain?

I have installed the Drupal on Main Domain and install the module Domain Access. Under the setting of Domain I have setup the other domain where I want to use . EX: example.com Ex: example.com.au ...
1 vote
0 answers
117 views

Domain Access and vagrant

I have made a copy of a Drupal 7 site with several sub-domains managed through domain access to a vagrant VM so I can experiment with it. I have my vagrant set up so I reach it through localhost on ...
  • 1,221
1 vote
1 answer
478 views

Domain Access and One.com hosting (funny subdomain rewrite)

I have a D7 installation that uses Domain Access to distinguish between a main website example.com and a minisite event.example.com. They share the same document root / Drupal installation and the ...
1 vote
1 answer
303 views

Drupal multi site 404s, sub directory site subpages going to default site

We have a strange set of errors going on with a dev (and stage) version of our drupal multisite. We have some sub directory sites, and some sites server up on different urls. One URL is an internal ...
  • 309
1 vote
0 answers
22 views

How do I make Edits to domain specific sites? eg, es.site.org vs. site.org

On site.org I can go to cms-site.org and the edit buttons appear on the page, which make pages editable. cms-es.site.org doesn't load at all. Similarly, an administration menu bar appears on cms-...
1 vote
2 answers
2k views

Setup on GoDaddy / Addon Domain "403 Forbidden Access Error"

I currently have a working Drupal Commerce site up and running. This site is on a godaddy / cpanel server. This site is on an addon domain and sits in the following server directory: home/.../...
  • 99
1 vote
0 answers
245 views

domain access: Alias of a main domain to point to subdomain

I´ve got an domain-access installation with the default domain "capital.com" and a subdomain "country.capital.com". I´m struggling now with pointing from a main domain to this subdomain. Like so: ...
1 vote
0 answers
193 views

Url Alias not working for domain paths

Iam using domain access module in my website and having multiple domains in my website for example iam having domains test.example.com (primary domain) test1.example.com when iam creating a sample ...
1 vote
0 answers
30 views

No logged in status on frontend nodes (domain access)

I'm using Domain Access Module with five different Domains. On one subdomain I cannot do any changes to my templates, JavaScript files, blocks etc. If I add some code to a template or place a new ...
  • 467
1 vote
0 answers
182 views

drupal issue with install profile and domain module?

I had generated the make file with the contrib module domain. When we enable the domain module, we just want to append the following code to the settings.php file. include_once DRUPAL_ROOT.'/profiles/...