From owner-freebsd-questions@FreeBSD.ORG Fri Jul 4 18:52:53 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 D6BD21065681 for ; Fri, 4 Jul 2008 18:52:53 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id 9401B8FC35 for ; Fri, 4 Jul 2008 18:52:53 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KEqOq-0006n1-Gt; Fri, 04 Jul 2008 20:52:52 +0200 Message-ID: <486E717F.8040307@FreeBSD.org> Date: Fri, 04 Jul 2008 20:52:47 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080610) MIME-Version: 1.0 To: Zbigniew Szalbot , User Questions References: <486E5840.5090408@lc-words.com> <486E63E0.6000800@FreeBSD.org> <486E6630.4060702@lc-words.com> In-Reply-To: <486E6630.4060702@lc-words.com> X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: mod_rewrite / comprehensive redirects 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: Fri, 04 Jul 2008 18:52:53 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Zbigniew Szalbot wrote: | Hello, | | Pietro Cerutti: |> -----BEGIN PGP SIGNED MESSAGE----- |> Hash: SHA512 |> |> Zbigniew Szalbot 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 |> |> Try with |> |> RewriteRule ^.+\.php$ /new/index.html |> |> (not tested) | | Tested and it works. Many thanks!!! :) Good. You're welcome :) | - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkhucX0ACgkQwMJqmJVx944fNQCgsno0O1Bb6otPsvDuOBt+RXTc OpEAoMlJr7TA8pwp73pS0Xpv9at1d7hC =VIsb -----END PGP SIGNATURE-----