[Xitami] Site redirects

Paul J. Smith pjsmith at mtgsy.net
Sat Dec 17 17:13:06 CET 2005


Hi,

Thanks.

Tried that, but it's very messy.  I want to log the original URL, and
Xitami does not seem to support a PHP page as the error page?  It's a
pity the error page can't be an external URL.  That'd work great.

-----Original Message-----
From: xitami-bounces at lists.xitami.org
[mailto:xitami-bounces at lists.xitami.org] On Behalf Of Francis Turner
Sent: 17 December 2005 15:53
To: Xitami Users General Discussion
Subject: Re: [Xitami] Site redirects

You should be able to do this by creating a custom 404 page with an
appropriate meta tag to redirect in the header

i.e. <meta http-equiv="Refresh"
content="1;url=http://www.mydomain.com/index.php">

You could use Xitamis GSL langauge to make the refirect depend on what
the wrong page was if that gave you pleasure. Take a look at
templates/errors.gsl for hints about what to do

Francis

On 12/17/05, Paul J. Smith <pjsmith at mtgsy.net> wrote:
> Hi,
>
> I only just started experimenting with Xitami.
>
> There's one thing I currently can't figure out how to do.  I have a
site
> where I want all requests, including ones for pages that do not exist
to
> go to the home page.  With IIS I just use the redirect to an exact url
> feature.  I can't seem to get the same functionality with Xitami.
>
> To explain
>
> Page /index.php exists
> User requests non existent page /testing/test.php
> User gets sent to /index.php
>
> Is this possible?
>
> Thanks.
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>


--
http://www.di2.nu/blog.htm
Faber's Fourth Law:
  Necessity is the mother of strange bedfellows.


--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami



More information about the Xitami mailing list