One S9y, many subdomains

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
tazilein
Regular
Posts: 56
Joined: Sun Apr 30, 2006 11:44 pm
Contact:

One S9y, many subdomains

Post 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 ?
my S9Y-Blogs: my personal brainbackup | [url=http://www.viennacityflats,at]Vienna Apartments Rental[/url] | Kasperls Geschichten | various other Sites using S9y as CMS
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: One S9y, many subdomains

Post by kleinerChemiker »

I think it should be possible with URL rewriting. But you must use relative links within your page.
tazilein
Regular
Posts: 56
Joined: Sun Apr 30, 2006 11:44 pm
Contact:

Re: One S9y, many subdomains

Post by tazilein »

Is anyone able to write such rules (yes, I have a paypal account :D )
my S9Y-Blogs: my personal brainbackup | [url=http://www.viennacityflats,at]Vienna Apartments Rental[/url] | Kasperls Geschichten | various other Sites using S9y as CMS
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: One S9y, many subdomains

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: One S9y, many subdomains

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
tazilein
Regular
Posts: 56
Joined: Sun Apr 30, 2006 11:44 pm
Contact:

Re: One S9y, many subdomains

Post 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 ?
my S9Y-Blogs: my personal brainbackup | [url=http://www.viennacityflats,at]Vienna Apartments Rental[/url] | Kasperls Geschichten | various other Sites using S9y as CMS
Post Reply