Question

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>
        ...
Was it helpful?

Solution 3

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

OTHER TIPS

Try to use an absolute path:

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top