mod rewrites for subdomains?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
imapumpkin
Posts: 4
Joined: Sat Jun 11, 2005 1:04 pm

mod rewrites for subdomains?

Post by imapumpkin »

Hi all, I would like to map my subdomains to my categories.

I have set up three subdomains as follows:
audio.mydomain.com
video.mydomain.com
photos.mydomain.com

The actual path in my web directory is:
public_html/audio
public_html/video
public_html/photos

And have set up three categories in serendipity:
audio
video
photos

What I want to happen is when someone clicks on for example audio.mydomain.com it displays all my audio entries. I want the url to display audio.mydomain.com rather than www.mydomain.com/categories/1-audio

Would this be a mod rewrite thing? I have the pretty URL option turned on in serendipity and have looked at the .htaccess file but I dont really understand it. If anyone could pass on any pointers that would help me achieve this I would be most grateful.

Thanks

best wishes
imapumpkin :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: mod rewrites for subdomains?

Post by garvinhicking »

I think you need to let all three domains point to your public_html/serendipity directory, not to their own directories. Only then you can use the mod_rewrite stuff as intended.

If you don't get that to work, you would need to create your own serendipity plugin, or use HTTP redirection but then loose the URL name "audio.mydomain.com".

Best 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/
imapumpkin
Posts: 4
Joined: Sat Jun 11, 2005 1:04 pm

Post by imapumpkin »

Thanks for your speedy reply Garvin. Sometimes I make things more difficult than they actually are and miss the blindingly obvious!!

Got it working now.

Thanks for your help :D
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Great to hear! Hope you'll have fun! :-))

Best 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/
Post Reply