A better way might be an small index.php that contains one line
header('Location: http://newsite');
where newsite is the new address.

--
Ori Idan


On 4/4/07, Hetz Ben Hamo <[EMAIL PROTECTED]> wrote:

Great trick, thanks a lot!

Happy Passover,
Hetz

On 4/4/07, Ilya Konstantinov <[EMAIL PROTECTED]> wrote:
> RedirectMatch /forum.* http://site/forum_moved.html
>
> and forum_moved.html could contain the message + 5 seconds redirection:
> <meta http-equiv="refresh" content="5;url=http://server/forum";>
>
>
> On 4/4/07, Hetz Ben Hamo < [EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Few months ago, I hosted a forum on a dedicated server.
> > Things have changed, I'm not hosting the forum but the domain is still
> mine.
> >
> > I'm getting a gazillion entries in my apache logs that people come to
> > this forum, even if it's not there...
> >
> > So, I was thinking to use mod_rewrite, so any user who tries to access
> > http://a.b.c/forum/something.php (or any URL with the
> "forum" word)
> > would be redirected to a page which will state "page is not here" and
> > we be redirected to the correct URL.
> >
> > Is there a simple mod for this? mod_rewrite seems like overblown for
> > this. Any suggestions?
> >
> > Thanks,
> > Hetz
> > --
> > Skepticism is the lazy person's default position.
> > Visit my blog (hebrew) for things that (sometimes) matter:
> > http://wp.dad-answers.com
> >
> >
> =================================================================
> > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > the word "unsubscribe" in the message body, e.g., run the command
> > echo unsubscribe | mail [EMAIL PROTECTED]
> >
> >
>
>


--
Skepticism is the lazy person's default position.
Visit my blog (hebrew) for things that (sometimes) matter:
http://wp.dad-answers.com

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]


Reply via email to