Stack Exchange Network

Stack Exchange network consists of 174 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 [domain-access]

Use it for the module for running a group of affiliated sites from one installation and a single shared database.

1
vote
1answer
14 views

How to load all aliases of a domain

I'm using the modules domain and domain_alias on Drupal 8. I need to load all the aliases of a given domain. I have tried the following without success: $aliases = \Drupal::service('entity_type....
0
votes
2answers
59 views

Language detection by domain breaks ajax requests over https

What do I have: Drupal 8.6.2 Domain Access Language modules Cloudflare with https Problem: If in URL language detection option (/admin/config/regional/language/detection/url) I have "Path prefix"...
0
votes
1answer
38 views

How to pass dynamic parameters through a local action button?

I created a local action button with the following in my_module.links.action.yml: my_module.content.action: route_name: node.add_page title: 'My action' deriver: 'Drupal\my_module\Plugin\...
1
vote
2answers
22 views

What is the equivalent of domain_get_domain()?

I need the equivalent of domain_get_domain() in the Domain Access module for Drupal 8, but I can't find it. I need to find the domain for the current request.
0
votes
1answer
55 views

How to pass values to content creation page to set default values in form elements?

Introduction (not necessarily needed to be able to answer the question) I use Domain Access module to be able to manage different sites from one Drupal installation and a single shared database. I ...
0
votes
0answers
29 views

Set dynamic $base_url with Domain Access module to avoid redirects

If you run two URLs with Domain module like e.g. main.site.com sub.site.com main.site.com is main site, so if you go to sub.site.com/user and login, it redirects back to main.site.com. This happens ...
-1
votes
2answers
18 views

Test domain access module

I have used the domain access module to create 2 domains that our business use, and I wanted to test them in the CI cycle. How do I test them in CI that they are active and each domain uses the ...
0
votes
0answers
18 views

How to configure a production multi-domain website (D7)

I am on Drupal 7 and LWS on a production site that I want to open to two new domain aliases. So I want to the same structure to be accessible using different domain names because some content could ...
0
votes
0answers
26 views

Subdomain not working - Domain Access

Here's what I've done so far: Installed and enabled Domain and all its submodules Add domain record for default domain Created services.yml file with the cookie domain configuration Created ...
0
votes
0answers
71 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 ...
0
votes
1answer
24 views

One site, two domains

We have a single site that we'd like to have two different domains: apply.school1.edu and apply.school2.edu. The site is at apply.school1.edu and we'd simply like to create a domain apply.school2.edu ...
0
votes
1answer
14 views

How is domain_taxonomy_access module configured?

I am trying to use the domain_taxonomy_access module, but I do not know how it is configured. How I do so that the user of a certain domain can manage their newsletters? I am trying to implement the ...
0
votes
1answer
64 views

Add paragraph domains to media View

I'm using media and domain modules. Nodes are assigned to multiple domains and there are image fields that link to media images on those nodes. Some content types also use paragraphs and these ...
0
votes
0answers
35 views

How do I make a multi-site configuration work properly with the domain manager user role?

I'm creating a multi-site instance in which there is main domain and some other domains. Such as maindomain.com, subdomain.maindomain.com, somedomain.com etc. What I want is to add domain by the root ...
0
votes
0answers
28 views

Drupal urls include absolute paths

I just updated drupal core on website and my drupal alias do not work unless the full path to a directory is included Example: http://michael.tsikerdekis.com/ (works) http://michael.tsikerdekis.com/...
0
votes
1answer
17 views

Swap out blocks based on domain name extension

We have a European site that is the same exact site for three different domain names. So www.mysite.eu, www.mysite.ie and www.mysite.ch all go to the same site. However, we would like to make very ...
0
votes
0answers
12 views

Filtering search by domain causing pager to have different number of elements per page

Filtering out the content nodes from a search (/search/node/) using: if (gettype($result['node']->domains[5]) !== "NULL" && $result['node']->domains[5] === "5") { // allow these ...
0
votes
0answers
8 views

Domain Access cannot log in to main domain

I have Domain Access running on Drupal 7. I can access and log into all the sub-domains but for some reason, it is not letting me log in to the main domain or administer the main domain's settings. ...
1
vote
0answers
58 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 ...
0
votes
0answers
44 views

(site)/sites/all/modules/contrib/domain/tests/200.png is not responding error.

(site)/sites/all/modules/contrib/domain/tests/200.png is not responding as expected and may not be configured correctly at the server level.Server code -111 was returned. I get the above error in ...
0
votes
1answer
88 views

How to create a lightweight domain access alternative in Drupal 7

I have a password protected site mainly used for internal management of projects, but have regularly the need to publish some of its content for clients. For simplicity sake, I would prefer to keep ...
0
votes
1answer
23 views

How can I migrate the Domain publishing settings for nodes via SQL?

I am using Drupal 7 and Domain Access (latest stable versions). In my source site, there are nodes with "Domain access options", "publish to.." then a number of selected domains. I migrate the data ...
0
votes
1answer
2k views

Too many redirects error with https and domain access module

I'm redirecting traffic for my various domains to HTTPS. Things seem to work fine on my local, but when I deploy to my production site I get the "www.mysite.cn redirected you too many times." error. I'...
0
votes
1answer
56 views

Different domain per node

I wonder if it is possible to have different domains set for, for instance, per path basis, or view basis, or node id basis?
0
votes
1answer
155 views

Views programmatically remove node access (tag)

I'm trying to remove the node access check from a view programmatically. But i'm not sure where the access tags are added/executed. function MYMODYLE_views_query_alter(ViewExecutable $view, ...
0
votes
1answer
225 views

Get node path for different domain

I have a series of nodes which are published on up to 7 different domains on the same single Drupal 7 install. Whilst I can use url('node/12345'); for nodes published to the current domain, I would ...
0
votes
0answers
173 views

How to secure multi sub-domain user login with a single SSL cert?

We are using domain access and have 11 sub-domains, one for each country. We'd like to secure user logins with SSL, but don't want to create 11 SSL certs for each environment (dev, stg, prod). Is ...
4
votes
1answer
52 views

Is it possible to get rid of content duplicates?

I've got a site, mysite.com. Now I'm trying to add blog on it at sub-domain, blog.mysite.com, using the Domain Access module. When I create an article in blog, with alias blog.mysite.com/article-...
1
vote
1answer
204 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 ...
0
votes
1answer
818 views

Share nodes and users across multiple sites

I understand sharing databases/tables is frowned upon as a practice, however, I need to share users and some nodes between two websites. What are the alternatives and what are the pros and cons of the ...
0
votes
1answer
47 views

Domain override module in drupal 7

I have a main site with "domain access" module. It has 5 multilingual sub sites with subdomain(single database). I want to publish content from the main site to the subsites. This is already working ...
0
votes
1answer
144 views

Domain Access: Subdomain -> same views-path - different view?

I am a beginner by module domain-access and have a question. standarddomain: example.com subdomain: m.example.com In my standarddomain i use a views-page with path example.com/myviewsgallery (Views ...
2
votes
1answer
318 views

How to add domain access to custom entity?

Trying to do this for a custom entity, but it seems like Domain Access doesn't have its own entity to reference, and I'm not quite sure what method to use. I'm still looking into it, but since I ...
0
votes
1answer
68 views

How to use a sub-domain for a specific content type?

I have a blog content type. My client would like the domain to be blog.example.com for only that content type. I would like to know the best way to approach this, whether it be a rewrite rule or using ...
0
votes
1answer
174 views

Redirect in multidomain sites

My story is: I use module Domain Access for Multi domain feature and Internationalization, Domain Variable for the multilingual features. I have these domains: www.domain-a.com (main domain) www....
1
vote
1answer
47 views

content access does not work after changing domain

after designing and developing a website I changed its domain. Now any of the permissions are not working. every thing is OK appearently but the functionality is not OK at all.(I mean all the ...
0
votes
0answers
10 views

Prohibit indexing aliases and original paths for search engines [duplicate]

For the same website two domains are used. Would onedomain.com/node/100 be indexed by search engines for the alias onedomain.com/article/100 which is disallowed to be indexed by search engines in ...
0
votes
1answer
160 views

How to disallow one domain path in robots.txt without any modules? [duplicate]

How to disallow one domain path in robots.txt? (there is a module which allows to do that but it is better to avoid it because of performance issues) For example, onedomain.com/path1/* must be ...
0
votes
1answer
69 views

how to get row field for each node

i created a field called : (sitename_ar) and i have two rows (two domains) in {domain} field : and i have in my database these two fields {node} and {domain_access} : and i want display in view ...
0
votes
1answer
67 views

What is the most efficient way to create and manage 500 sales/landing pages

For a domain sales business, what is the best way to create and manage about 500 landing pages, each connected to a top level domain name? I have worked with the Domain Access module in the past, but ...
0
votes
1answer
281 views

How do I translate domain:site_name in the view page?

I created a multi-lingual site (Arabic and English), and installed all the necessary modules. I translated the site name for every domain. I created a view page. When I visit the site ...
1
vote
0answers
224 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
0answers
71 views

Can alias be set for same language but different domains?

I have a site in Drupal 7, with Domain Access and i18n modules. I use PathAuto. I can create custom links, and link to a node nid with different languages, but I am not able to create different links ...
0
votes
1answer
262 views

Changing default domain in domain access causes 'access denied' for admin

I'm using Drupal 7 with the Domain Access module version 7.x-311. I've successfully configured a bunch of subdomains running sites correctly, with one subdomain as default. All worked well until I ...
1
vote
0answers
21 views

User's Domain Roles not recognized by Views

We have upgraded our Drupal platform from 7.32 to 7.41, and upgraded Domain Access from 3.9 to 3.12. After the upgrade our Views that evaluate user's domain roles are not returning any role for the ...
0
votes
0answers
166 views

Domain access with access control bridge

I already have a site working almost with 25 roles, 10000 nodes and 185 modules. There are several access control modules like TAC lite, Content Access etc. Users can have multiple roles. To make ...
1
vote
1answer
72 views

Separate Domain users get redirected to Default domain upon login and content save

I have set up Domain Access module in Drupal correctly, and everything works fine but with an issue. The issue is, that when a subdomain user logs in with his account from his assigned domain, he gets ...
1
vote
0answers
150 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 ...
0
votes
1answer
58 views

Same user for multiple sites

I am planning to use different server for multiple purpose. like Groups.eg.com Privatecontent.eg.com review.eg.com etc... I have up to 5 different subdomains and everything runs in different ...
0
votes
1answer
208 views

Hosting Multiple Domains seamlessly with same site code, theme, modules, data etc. not a multisites situation!

I would like to use D7 to support two domains with same code, themes, modules and even database and content, completely transparent to the end-user. So, user of oxustech.com would see only oxustech....