From owner-freebsd-questions@FreeBSD.ORG Tue Sep 18 19:27:27 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C9DF106566C for ; Tue, 18 Sep 2012 19:27:27 +0000 (UTC) (envelope-from jacks@sage-american.com) Received: from mail.sagedata.net (mail.sagedata.net [38.106.15.121]) by mx1.freebsd.org (Postfix) with ESMTP id C06248FC12 for ; Tue, 18 Sep 2012 19:27:26 +0000 (UTC) Received: from [192.168.1.67] (99-111-143-21.lightspeed.crchtx.sbcglobal.net [99.111.143.21]) by mail.sagedata.net (8.14.5/8.14.5) with ESMTP id q8IJRPYt030800; Tue, 18 Sep 2012 14:27:26 -0500 (CDT) (envelope-from jacks@sage-american.com) X-Authentication-Warning: mail.sagedata.net: Host 99-111-143-21.lightspeed.crchtx.sbcglobal.net [99.111.143.21] claimed to be [192.168.1.67] Message-ID: <5058CB35.2070408@sage-american.com> Date: Tue, 18 Sep 2012 14:27:49 -0500 From: Jack Stone User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: Theodor-Iulian Ciobanu References: <5058B157.701@sage-american.com> <5058BA6F.4070503@sage-american.com> <20120918213555.00005359@unknown> In-Reply-To: <20120918213555.00005359@unknown> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: milter-spamc/1.15.388 (mail.sagedata.net [38.106.15.121]); Tue, 18 Sep 2012 14:27:26 -0500 X-Spam-Status: NO, hits=-10.00 required=4.50 X-Spam-Report: Content analysis details: (-10.0 points, 4.5 required) | | pts rule name description | ---- ---------------------- -------------------------------------------------- | -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule | -10 ALL_TRUSTED Passed through trusted hosts only via SMTP | Cc: freebsd-questions@freebsd.org Subject: Re: Simple redirect X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2012 19:27:27 -0000 On 9/18/2012 1:35 PM, Theodor-Iulian Ciobanu wrote: > On Tue, 18 Sep 2012 13:16:15 -0500 > Jack Stone wrote: > >> On 9/18/2012 12:37 PM, Jack Stone wrote: >>> FreeBSD mail.sagedata.net 7.4-RELEASE-p10 FreeBSD 7.4-RELEASE-p10 >>> apache22 >>> >>> Sorry if this belongs on a different mail list, but figure there >>> are plenty here who know how to do this. >>> >>> On one of our web sites, some 4 years ago we moved the content into >>> a new directory, but after all this time there are some 100 >>> referrers still linking to the old location. >>> >>> If the incoming link doesn't direct one to www.myweb.com/ >>> how would we redirect to www.newplace.html >>> >>> Appreciate advice.... >>> >> I should have mentioned, those old links are being directed to about >> a dozen various directories. I want the referrer to ignore those and >> redirect to the new "www.newplace.html" > http://tools.ietf.org/html/rfc2616#section-10.3.2 > http://en.wikipedia.org/wiki/HTTP_301 > Thanks for the help but I figured it out and doesn't even notify a 301 that place has been moved which I like. Slick!! Here's examples of dirs and pages using rewrite in the .htaccess file: RewriteEngine on # dirs RewriteRule ^a10 lbc_signup.html [PT] # pages RewriteRule ^abook.html lbc_signup.html [PT] -- -- All the best, Jack