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>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2245720.9CeiryvukT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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: =2DUse .htaccess, I dont have a syntax example handy. =2DUse the redirect directive in httpd.conf. Example: RedirectMatch permanent /dir1/*(.*)$ http://www.yoursite.com/dir2 =2DUse html refresh. Create the page which should get redirected with the=20 following content: <html> <head> <META HTTP-EQUIV=3D"refresh" content=3D"0;URL=3Dhttp://www.yoursite.com/new= link"> </head> </html> --nextPart2245720.9CeiryvukT Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBBX08PBylq0S4AzzwRAp2RAJ9DDo+41dy/fOi3ZA0pgYVaW2umUQCggJ2z 6POcWlyt91ukzgMxaZj4Zfc= =nC6W -----END PGP SIGNATURE----- --nextPart2245720.9CeiryvukT--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410030259.59727.Emanuel.Strobl>