Date: Fri, 04 Jul 2008 12:26:53 -0500 From: Paul Schmehl <pschmehl_lists@tx.rr.com> To: Zbigniew Szalbot <z.szalbot@lc-words.com>, User Questions <freebsd-questions@freebsd.org> Subject: Re: mod_rewrite / comprehensive redirects Message-ID: <2333DCE40240BE7264CBB6A4@Macintosh.local> In-Reply-To: <486E5840.5090408@lc-words.com> References: <486E5840.5090408@lc-words.com>
index | next in thread | previous in thread | raw e-mail
--On July 4, 2008 7:05:04 PM +0200 Zbigniew Szalbot <z.szalbot@lc-words.com> 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.help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2333DCE40240BE7264CBB6A4>
