[TriLUG] Re: Apache Question
Lance A. Brown
lance at bearcircle.net
Tue Apr 12 15:39:55 EDT 2005
Steve Hoffman wrote:
> What is the best way to redirect everything EXCEPT one directory in
> apache? I'm trying to redirect all traffic to the secure port except
> http://host.com/wap. I thought maybe RedirectMatch was the way to go,
> but I can't come up with a REGEX that works.
What about doing a Cond rule that matches http://host.com/wap and redirects
to that URL with an [L] to drop out of the rewrite, then have another rule
that redirects everything else to where you want it?
--[Lance]
--
Celebrate The Circle: http://www.celebratethecircle.org/
Carolina Spirit Quest: http://www.carolinaspiritquest.org/
My LiveJournal: http://www.livejournal.com/users/labrown/
GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
More information about the TriLUG
mailing list