OG, subdomains and domain access

jaxpax - February 18, 2009 - 16:10

Hi!
I'm about to configure a site where visitors can get a membership via www.mysite.com.
As a member they can post contents with the content type "about_me". If they feel like it they can start a group with the OG module, and if they choose to do so then the group URL would be groups.mysite/user-group. In their group they can post "group_blog" content, that would only get published in their group, as well as "about_me" content, that would be published at www.mysite.com and groups.mysite/user-group.

I hope that this will clear things up:

  • URL: www.mysite.com
    1. Content type: about_me - private/public
    2. Content type: group_blog (only visible through blocks)
  • URL: groups.mysite.com
    1. Content type: about_me - private/public
    2. Content type: group_blog

My modules for handling this are, for the moment, Domain Access and OG, but I'm not sure how to accomplish this.

Hmm

ludo1960 - February 18, 2009 - 16:18

I am doing something similar, but I am using the subdomain module rather than the domain module. I'm pretty sure this is doable using that combination. I'm not at my test machine now, but will give it a go later and let you know.

Cheers,

Thanks I would really

jaxpax - February 18, 2009 - 16:31

Thanks I would really appreciate that. I have thaught about the subdomain module myself but under the paragraph RELATED MODULES one can read: If you wish to share content across multiple domains, you might want to try the Domain Access module..
That made me think that sharing content between domains weren't possible with the subdomain module.

Looking forward to your result.

//Patrik
---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

Your initial post....

ludo1960 - February 18, 2009 - 16:33

States that:

URL: www.mysite.com
Content type: about_me - private/public
Content type: group_blog (only visible through blocks)
URL: groups.mysite.com
Content type: about_me - private/public
Content type: group_blog

These are the same domains! No need for the domain module.

Ok, I will try the subdomain

jaxpax - February 18, 2009 - 16:41

Ok, I will try the subdomain module. Maybe that will do the trick, then.

Thanks a bunch for your quick replies!

---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

Also

ludo1960 - February 18, 2009 - 16:49

Check out the OG Vocabulary Module(http://drupal.org/node/64094) Perhaps views could be used to show shared Taxonmoies from OG's in a way that suits your requirements (not sure tho, but this was my train of thought) If you are successful, please post back and share.

Thanks, will do that. One

jaxpax - February 18, 2009 - 17:18

Thanks, will do that. One more thing... After configuring the settings.php >> $cookie_domain = "example.com" how do I get it to work with a www URL, like www.example.com? Right now only example.com works for me :-p

---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

I think...

ludo1960 - February 18, 2009 - 17:29

If I understand correctly you mean the difference between example.com and www.example.com, if so then these are set in your Apache configuration or your .htaccess file

Well, this is quite new to

jaxpax - February 18, 2009 - 17:37

Well, this is quite new to me. What I want is for visitors to get to my site "example" by entering example.com and www.example.com.

---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

It works

ludo1960 - February 18, 2009 - 17:41

I have a web server and the settings are mysite.com in the settings file. When I browse from another computer to my website www.mysite.com, mysite.com, http://mysite.com and http://www.mysite.com all resolve to mysite.com, so no worries there!

Hmm... I looked under

jaxpax - February 18, 2009 - 17:56

Hmm... I looked under "Issues" for the subdomain module (#369801: www restriction ignored), and found that other had experienced the same problem. Maybe the suggested code snippet will help me out, there? Or maybe this is a whole different matter?

---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

Oh

ludo1960 - February 18, 2009 - 18:05

I was unaware of this issue, however as I am just developing at the moment so not really a problem for me. I would assume it will be sorted quite soon as this module seems to be well supported. Apache can sort this out anyway.

Just to make it clear, the

jaxpax - February 19, 2009 - 08:30

Just to make it clear, the solution I was talking about above worked out my problem with the URL. sersims code snippets worked just fine for me.

//Patrik

Mabe this will help?

jaxpax - February 18, 2009 - 17:59

When entering the URL www.example.com I get "Page not found"
---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

Who is your

ludo1960 - February 18, 2009 - 18:06

Who is your hosting company?

binero.se. I think I will

jaxpax - February 18, 2009 - 18:11

binero.se. I think I will post an Issue for this under the subdomain project page. Thank you for your patience with this :-)

//Patrik
---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

Here's how

ludo1960 - February 18, 2009 - 18:15

I will forward this link to

jaxpax - February 18, 2009 - 18:17

I will forward this link to my hosting company ;-)

---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

I've got other sites at the

jaxpax - February 18, 2009 - 19:23

I've got other sites at the same hosting company and the URL problem won't show up with the other sites so my guess is that the problem is related to the subdomain module.

---------------
He who seeks, will find. Eventually. Hopefully. Maybe.

www & subdomain module

setvik - March 28, 2009 - 11:32

The issue with "www" has been fixed in the latest version of the Drupal 6.x version of Subdomain (6.x-1.5).

Make sure "www" is in the list of restricted subdomains on the subdomains setting screen, and the subdomain module will ignore all url's to www and let them pass unaltered on to Drupal.

 
 

Drupal is a registered trademark of Dries Buytaert.