Skip to main content
improved grammar; removed thanks and greetings
Source Link
avpaderno
  • 98.1k
  • 15
  • 165
  • 284

I have a website say example.com with 5 sub-domains(site1: site1.example.com,site2 site2.example.com,site3 site3.example.com,site4 site4.example.com,site5 and site5.example.com).

When a user visitsusers visit example.com,he is they are presented with the other 5 sub-domains to choose from.I I want to implement something like, when a user selects say site1.example.com,on his next visit to example.com he should be re-directedthat redirect the users to his previous visited (subthe sub-domain) or link he selected(site1.example.com) they choose the first time they visit the main domain.I I know uI can use cookies for this, but how do you go aboutcan I implement this in drupal.

Any help will be very much appreciated.

Thank youDrupal?

I have a website say example.com with 5 sub-domains(site1.example.com,site2.example.com,site3.example.com,site4.example.com,site5.example.com)

When a user visits example.com,he is presented with the other 5 sub-domains to choose from.I want to implement something like, when a user selects say site1.example.com,on his next visit to example.com he should be re-directed to his previous visited (sub-domain) or link he selected(site1.example.com).I know u can use cookies for this but how do you go about this in drupal.

Any help will be very much appreciated.

Thank you

I have a website say example.com with 5 sub-domains: site1.example.com, site2.example.com, site3.example.com, site4.example.com, and site5.example.com.

When users visit example.com, they are presented with the other 5 sub-domains to choose from. I want to implement something that redirect the users to the sub-domain they choose the first time they visit the main domain. I know I can use cookies for this, but how can I implement this in Drupal?

Source Link
Jnr Fred
  • 45
  • 1
  • 5

How to redirect a user to a visited sub-domain on his next visit to main domain

I have a website say example.com with 5 sub-domains(site1.example.com,site2.example.com,site3.example.com,site4.example.com,site5.example.com)

When a user visits example.com,he is presented with the other 5 sub-domains to choose from.I want to implement something like, when a user selects say site1.example.com,on his next visit to example.com he should be re-directed to his previous visited (sub-domain) or link he selected(site1.example.com).I know u can use cookies for this but how do you go about this in drupal.

Any help will be very much appreciated.

Thank you