[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Support for HTTP Redirects? was: Re: https connection without http

From: Chris Croome <chris_at_webarchitects.co.uk>
Date: 2004-03-13 00:54:19 CET

Hi

On Sat 13-Mar-2004 at 12:35:06AM +0100, Marcin Gil wrote:
>
> So, how do you create those redirections? By a index.html file
> with meta refresh, index.php with header(location) or with
> mod_rewrite?

None of those, just a simple Redirect statments in a VirtualHost,
like:

  Redirect /foo https://svn.example.com/foo

You can make them 301's like this:

  Redirect permanent /foo https://svn.example.com/foo

The key think to remember is that the destination has to be a fully
qualified URI.

More info here:

  http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirect

Also RedirectMatch is nice, it's new in Apache 2:

  http://httpd.apache.org/docs-2.0/mod/mod_alias.html#redirectmatch

It's simpler to get your head around that mod_rewrite and is quite
powerful.

Chris

-- 
Chris Croome                               <chris@webarchitects.co.uk>
web design                             http://www.webarchitects.co.uk/ 
web content management                               http://mkdoc.com/   
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Mar 13 00:54:47 2004

This is an archived mail posted to the Subversion Users mailing list.