[wellylug] HTTP re-direct

Darryl Hamilton wellylug at addict.net.nz
Mon Apr 11 14:34:49 NZST 2005


Chris Hodgetts wrote:
> What's the correct way of doing an HTTP redirect?
> 
> I have a site www.domainname.com/~username
> 
> I want to re-direct that to another site, I was going to put in a <meta 
> http-equiv="refresh" thing, but was wondering if there is a "correct" 
> way of doing this, when I don't have access to the config on the server..
> 
> 
> Would like to use the
> 
> HTTP/1.1 Redirection 3xx
> 
> 
> It might also be useful to know how to correctly do this when you do 
> have access to the server config.

If you have access to the server config, I'd have a look at using 
mod_rewrite - check out the docs on the Apache site, there's an example 
of how to do exactly what you're wanting to do.

d.




More information about the wellylug mailing list