Date: Sun, 3 Oct 2004 02:59:53 +0200 From: Emanuel Strobl <Emanuel.Strobl@gmx.net> To: freebsd-questions@freebsd.org Cc: questions@freebsd.org Subject: Re: apache - how to redirect page not found Message-ID: <200410030259.59727.Emanuel.Strobl@gmx.net> In-Reply-To: <20041002231007.GA80368@skytrackercanada.com> References: <20041002231007.GA80368@skytrackercanada.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] Am Sonntag, 3. Oktober 2004 01:10 schrieb David Banning: > I notice on some web sites when you try to load a page that does not > exist, it directs the users browser to another page. How do I set > that up in apache? Three different methods: -Use .htaccess, I dont have a syntax example handy. -Use the redirect directive in httpd.conf. Example: RedirectMatch permanent /dir1/*(.*)$ http://www.yoursite.com/dir2 -Use html refresh. Create the page which should get redirected with the following content: <html> <head> <META HTTP-EQUIV="refresh" content="0;URL=http://www.yoursite.com/newlink"> </head> </html> [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBX08PBylq0S4AzzwRAp2RAJ9DDo+41dy/fOi3ZA0pgYVaW2umUQCggJ2z 6POcWlyt91ukzgMxaZj4Zfc= =nC6W -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410030259.59727.Emanuel.Strobl>
