why redirec just reloading itself???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dan glenn

    why redirec just reloading itself???

    I want to redirect from an HTML file to a PHP script (to conserve a past
    link published elsewhere). What I'm doing is like:

    (file oldfile.html)
    <html>
    <head>
    <meta http-equiv=refresh
    content="3; project.php">
    <title>HTML redirection</title>
    </head>

    <body>
    <h1>HTML redirection</h1>
    <p align="center">
    Please wait while you are redirected to the new site
    or click <a href="project.p hp">here</a>
    </p>
    </body>
    </html>

    The redirection just causes this same file (oldfile.html) to reload, and not
    to load the project.php file. WHY? If I click the link, that works, but of
    course I want the redirection to just take me to project.php automatically
    and all it does is just constantly reload itself every 3 seconds. I must be
    missing something here, but I can't see what it is...

    -dg


  • Jørn-Inge Kristiansen

    #2
    Re: why redirec just reloading itself???

    becase it should say;
    <META HTTP-EQUIV="refresh" CONTENT="3; URL=project.php ">


    "dan glenn" <dan_danboy@yah oo.com> wrote in message
    news:2DIdb.101$ 7k6.11834672@ne wssvr13.news.pr odigy.com...[color=blue]
    > I want to redirect from an HTML file to a PHP script (to conserve a past
    > link published elsewhere). What I'm doing is like:
    >
    > (file oldfile.html)
    > <html>
    > <head>
    > <meta http-equiv=refresh
    > content="3; project.php">
    > <title>HTML redirection</title>
    > </head>
    >
    > <body>
    > <h1>HTML redirection</h1>
    > <p align="center">
    > Please wait while you are redirected to the new site
    > or click <a href="project.p hp">here</a>
    > </p>
    > </body>
    > </html>
    >
    > The redirection just causes this same file (oldfile.html) to reload, and[/color]
    not[color=blue]
    > to load the project.php file. WHY? If I click the link, that works, but of
    > course I want the redirection to just take me to project.php automatically
    > and all it does is just constantly reload itself every 3 seconds. I must[/color]
    be[color=blue]
    > missing something here, but I can't see what it is...
    >
    > -dg
    >
    >[/color]


    Comment

    • dan glenn

      #3
      Re: why redirec just reloading itself???

      Good grief - I forgot the 'URL='. I was typing from an example I found on
      the web and I just missed typing that in. I am such a moron. I am hopeless.
      Why do I even go on???

      thanks,
      dg

      "Jørn-Inge Kristiansen" <jorninge@stud. ntnu.no> wrote in message
      news:bl7nbs$7oc $1@tyfon.itea.n tnu.no...[color=blue]
      > becase it should say;
      > <META HTTP-EQUIV="refresh" CONTENT="3; URL=project.php ">
      >
      >
      > "dan glenn" <dan_danboy@yah oo.com> wrote in message
      > news:2DIdb.101$ 7k6.11834672@ne wssvr13.news.pr odigy.com...[color=green]
      > > I want to redirect from an HTML file to a PHP script (to conserve a past
      > > link published elsewhere). What I'm doing is like:
      > >
      > > (file oldfile.html)
      > > <html>
      > > <head>
      > > <meta http-equiv=refresh
      > > content="3; project.php">
      > > <title>HTML redirection</title>
      > > </head>
      > >
      > > <body>
      > > <h1>HTML redirection</h1>
      > > <p align="center">
      > > Please wait while you are redirected to the new site
      > > or click <a href="project.p hp">here</a>
      > > </p>
      > > </body>
      > > </html>
      > >
      > > The redirection just causes this same file (oldfile.html) to reload, and[/color]
      > not[color=green]
      > > to load the project.php file. WHY? If I click the link, that works, but[/color][/color]
      of[color=blue][color=green]
      > > course I want the redirection to just take me to project.php[/color][/color]
      automatically[color=blue][color=green]
      > > and all it does is just constantly reload itself every 3 seconds. I must[/color]
      > be[color=green]
      > > missing something here, but I can't see what it is...
      > >
      > > -dg
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...