Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Jul 2008 20:52:47 +0200
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        Zbigniew Szalbot <z.szalbot@lc-words.com>,  User Questions <freebsd-questions@freebsd.org>
Subject:   Re: mod_rewrite / comprehensive redirects
Message-ID:  <486E717F.8040307@FreeBSD.org>
In-Reply-To: <486E6630.4060702@lc-words.com>
References:  <486E5840.5090408@lc-words.com> <486E63E0.6000800@FreeBSD.org> <486E6630.4060702@lc-words.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?486E717F.8040307>