From owner-freebsd-questions@FreeBSD.ORG Fri Jul 4 17:56:16 2008 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 31A67106566C for ; Fri, 4 Jul 2008 17:56:16 +0000 (UTC) (envelope-from prvs=pschmehl_lists=064a57560@tx.rr.com) Received: from ip-relay-001.utdallas.edu (ip-relay-001.utdallas.edu [129.110.20.111]) by mx1.freebsd.org (Postfix) with ESMTP id F12FB8FC36 for ; Fri, 4 Jul 2008 17:56:14 +0000 (UTC) (envelope-from prvs=pschmehl_lists=064a57560@tx.rr.com) X-Group: RELAYLIST X-IronPort-AV: E=Sophos;i="4.30,303,1212382800"; d="scan'208";a="3379651" Received: from smtp3.utdallas.edu ([129.110.20.110]) by ip-relay-001.utdallas.edu with ESMTP; 04 Jul 2008 12:26:59 -0500 Received: from [192.168.2.102] (cpe-24-175-90-48.tx.res.rr.com [24.175.90.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTPSA id 75EF823DDF; Fri, 4 Jul 2008 12:26:59 -0500 (CDT) Date: Fri, 04 Jul 2008 12:26:53 -0500 From: Paul Schmehl To: Zbigniew Szalbot , User Questions Message-ID: <2333DCE40240BE7264CBB6A4@Macintosh.local> In-Reply-To: <486E5840.5090408@lc-words.com> References: <486E5840.5090408@lc-words.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) X-Munged-Reply-To: To reply - figure it out MIME-Version: 1.0 Content-Type: multipart/signed; micalg=sha1; protocol="application/pkcs7-signature"; boundary="==========F0D5DCD2AD5F8D102AD8==========" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: mod_rewrite / comprehensive redirects X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Paul Schmehl List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 17:56:16 -0000 --==========F0D5DCD2AD5F8D102AD8========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline --On July 4, 2008 7:05:04 PM +0200 Zbigniew Szalbot=20 wrote: > Dear all, > > I know this is not Apache's mailing list, but there are so many experts > here that I hope someone can help me. I have the following rule: > > RewriteRule ^\.*$ /new/index.html > > This redirects the base domain to a file called index.html in 'new' > folder. > > However, what I would really like to achieve is to redirect every php > file to /new/index.html, which currently does not work. > > I tried modifying the rule like this: > > RewriteRule ^\.php$ /new/index.html > > However, this rule matches nothing (or at least does not redirect). > > How should I accomplish this? I just need to redirect all hits to > /new/index.html until a new site is ready. > If that's what you want to do, make your ErrorDocument /new/index.html and = leave the rewrites alone. Paul Schmehl If it isn't already obvious, my opinions are my own and not those of my employer. --==========F0D5DCD2AD5F8D102AD8==========--