Apache rewrite assistance

PantsManUK

  • [me=PantsManUK]would dearly love to dump SMF 1.X at this juncture...[/me]
  • Posts: 174
Apache rewrite assistance
« on January 6th, 2012, 03:52 PM »
Any Apache rewrite gurus out there willing to offer a (for you) easy bit of assistance?

Situation is this, I have a VPS which has a couple of listening V hosts and IP addresses (for argument's sake; host.domain.com and domain.com, which go to 1.2.3.4 and 2.3.4.5 respectively), and a mailman install (on 1.2.3.4) which for no reason I can fathom has it's webpage URLs all set to domain.com (not where mailman is). I've checked all the mailman conf files and they rightly have the correct webpage host of host.domain.com set, so lord knows why it's started handing out domain.com URLs (and yes, I'm going to get my VPS support folks to explain that one to me if they can), but in the mean time we've got mail stacking up in mailman for moderation that we can't do anything with. Quickest solution I can think of (given it all goes via Apache) is to set up a rewrite to trap this and fix it on the fly; unfortunately, I don't know rewrite all that well.

So, can someone help out with a rewrite set that will spot "domain.com/mailman/*" and rewrite it to "host.domain.com/mailman/*"?
« What is this thing you hoomans call "Facebook"? »

IchBin

  • Posts: 11

PantsManUK

  • [me=PantsManUK]would dearly love to dump SMF 1.X at this juncture...[/me]
  • Posts: 174
Re: Apache rewrite assistance
« Reply #2, on January 6th, 2012, 06:33 PM »
Yup, that worked, +1, Like and some karma is well deserved. Many thanks IchBin.