Page 1 of 1

One S9y, many subdomains

Posted: Wed Feb 04, 2009 9:23 am
by tazilein
Hi,

I am using S9y on many sites, but this time it is something special, so I need some advise.

Its a website that has a main part at www.domain.com and about 20 subdomains for special events. One option would be a shared installation, but that cannot be managed centrally and in case of an update I have to surf to all subdomains.

What I want: One S9y-Installation in www.domain.com and every subdomain gets its one category that is reached via subdomain1.domain.com. A simple redirect is not enough as there should be the URL subdomain.domain.com/post1.html in the browser to see.

Is that possible ?

Re: One S9y, many subdomains

Posted: Wed Feb 04, 2009 10:06 am
by kleinerChemiker
I think it should be possible with URL rewriting. But you must use relative links within your page.

Re: One S9y, many subdomains

Posted: Wed Feb 04, 2009 10:54 am
by tazilein
Is anyone able to write such rules (yes, I have a paypal account :D )

Re: One S9y, many subdomains

Posted: Wed Feb 04, 2009 10:58 am
by kleinerChemiker
the rules have to fit youre rewriterules and your url-structure. Therefore it would be good, if you post your rewrite rules and your config for the url-structure.

Re: One S9y, many subdomains

Posted: Wed Feb 04, 2009 11:19 am
by garvinhicking
Hi!

You could also write a very simple event plugin that listens on frontend_configure and sets the $serendipity['GET']['category'] depending on $_SERVER['HTTP_HOST'].

Since kleinerchemiker replied here first, if he wants to do that job for you, have a go :-)

Regards,
Garvin

Re: One S9y, many subdomains

Posted: Wed Feb 04, 2009 11:35 am
by tazilein
For me it is equal who does it, as long as it is done good and fast :D.

So if you agreed on who is willing to help me and it does not cost too much I appreciate every help I can get.

EDIT:@garv: for your solution: will there be shown "subdomain.domain.com" or "domain.com/category" in the Adresszeile of the browser ?