<noscript> <?php <?php if(basename($_SERVER['REQUEST_URI']) != "disable.html"){ ?> { ?><meta <meta http-equiv="Refresh" content="0;disable.html"> <?php } ?> </noscript> Place above code in your header file after title tag and set appropriate like[disable.html] for redirection.