From owner-freebsd-questions@FreeBSD.ORG Sun Oct 3 01:00:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED83116A4CE for ; Sun, 3 Oct 2004 01:00:03 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id BB9D543D41 for ; Sun, 3 Oct 2004 01:00:02 +0000 (GMT) (envelope-from Emanuel.Strobl@gmx.net) Received: (qmail 1134 invoked by uid 65534); 3 Oct 2004 01:00:01 -0000 Received: from flb.schmalzbauer.de (EHLO cale.flintsbach.schmalzbauer.de) (62.245.232.135) by mail.gmx.net (mp018) with SMTP; 03 Oct 2004 03:00:01 +0200 X-Authenticated: #301138 From: Emanuel Strobl To: freebsd-questions@freebsd.org Date: Sun, 3 Oct 2004 02:59:53 +0200 User-Agent: KMail/1.7 References: <20041002231007.GA80368@skytrackercanada.com> In-Reply-To: <20041002231007.GA80368@skytrackercanada.com> X-OS: FreeBSD X-Birthday: 10/06/72 X-Address: Munich, 80686 X-Tel: +49 89 18947781 X-CelPhone: +49 173 9967781 X-Country: Germany MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2245720.9CeiryvukT"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200410030259.59727.Emanuel.Strobl@gmx.net> cc: David Banning cc: questions@freebsd.org Subject: Re: apache - how to redirect page not found X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Oct 2004 01:00:04 -0000 --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: --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--