[TriLUG] Apache Question

Aaron Bockover abockover.trilug at aaronbock.net
Tue Apr 12 17:33:30 EDT 2005


RewriteEngine on
RewriteRule ^/wap.* %{REQUEST_URI} [L]
RewriteRule ^/(.*) https://secure.server.com/$1 [R,L]

That might just work. 

--Aaron

On Tue, 2005-04-12 at 15:20 -0400, 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.
> 
> TIA,
> Steve




More information about the TriLUG mailing list