Garrett
Garrett

Reputation: 11725

Meta page refresh not working for php page?

i am trying to redirect users without javascript enabled to our help page (help.php), specifically the part that talks about enabling javascript (help.php#nojavascript).

however, my meta refresh is not working! it keeps on refreshing the same page! i tried redirecting to a different page with a .html extension instead, and that works, so why doesn't this work?

        ...
  </script>
  <!-- if user doesn't have JS enabled, take them to help page -->
  <noscript>
  <meta http-equiv="Refresh" content="3;url=help.php" />
  </noscript>
  </head>
        ...

Upvotes: 1

Views: 899

Answers (3)

Garrett
Garrett

Reputation: 11725

i was including a file that redirected the user to home.php =( sorry!

Upvotes: 0

Seva Alekseyev
Seva Alekseyev

Reputation: 61351

For one thing, try taking it out of the NOSCRIPT element. Browsers with scripting enabled are supposed to ignore everything inside NOSCRIPT.

Upvotes: 1

quantumSoup
quantumSoup

Reputation: 28132

Try to use an absolute path:

<META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.some.org/some.html">

Upvotes: 1

Related Questions