Andrew White on Tue, 18 Jul 2000 17:55:40 -0400 (EDT)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] URL Redirection


This works for us in the vhost stanza on the latest release
of Apache under BSD:

RewriteEngine On
RewriteRule ^/users/phrantic/(.*) /users/phrantic/$1
RewriteRule /.* http://www.creamy.com/ [R]

-Andrew


On Tue, 18 Jul 2000 jackw@slinky.jounce.net wrote:

> ya, got that much there already
> 
> On Tue, Jul 18, 2000 at 05:32:48PM -0400, Andrew White wrote:
> > Be sure to add:
> > 
> > RewriteEngine on
> > 
> > before the lines below, or they won't do anything!
> > 
> > -Andrew White
> >  andrew@white.com
> > 
> > On Tue, 18 Jul 2000 jackw@slinky.jounce.net wrote:
> > 
> > > I came up with 
> > > 
> > > RewriteCond %{HTTP_HOST} www\.undernet-teen\.com
> > > RewriteRule /(.*) http://www.someurl.com
> > > 
> > > but it doesn't seem to have any effect...the .htaccess is working because
> > > other things in the file do have an effect, just not that. and yes,
> > > mod_rewrite is loaded and operational :P
> > > 
> > > any clues what's messed with that?  
> > > 
> > > tx
> > > 
> > > On Tue, Jul 18, 2000 at 03:36:23PM -0400, Andrew Auderieth wrote:
> > > > 
> > > > What about using mod_rewrite?  You'd probably get the best performance
> > > > that way rather than forking a cgi script with each request.
> > > > 
> > > > There's lots of examples at:
> > > > http://www.apache.org/docs/misc/rewriteguide.html
> > > > 
> > > > -- 
> > > > 				Andrew Auderieth
> > > > 				      CEO
> > > > 			Datarealm Internet Services, Inc.
> > > > 
> > > > http://www.serve.com/					   info@mail.serve.com
> > > > 
> > > > ______________________________________________________________________
> > > > Philadelphia Linux Users Group       -       http://www.phillylinux.org
> > > > Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
> > > > General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug
> > > 
> > > ______________________________________________________________________
> > > Philadelphia Linux Users Group       -       http://www.phillylinux.org
> > > Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
> > > General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug
> > > 
> > 
> > 
> > ______________________________________________________________________
> > Philadelphia Linux Users Group       -       http://www.phillylinux.org
> > Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
> > General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug
> 
> ______________________________________________________________________
> Philadelphia Linux Users Group       -       http://www.phillylinux.org
> Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug
> 


______________________________________________________________________
Philadelphia Linux Users Group       -       http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion   -   http://lists.phillylinux.org/mail/listinfo/plug