Javascript PHP头重定向将用户带到空白页
我正在尝试使用PHP头重定向跨我拥有的域重定向用户 我目前正在使用:Javascript PHP头重定向将用户带到空白页,javascript,php,html,redirect,header,Javascript,Php,Html,Redirect,Header,我正在尝试使用PHP头重定向跨我拥有的域重定向用户 我目前正在使用: <?php ob_start(); $local_Dir = '../'; include $local_Dir.'resources/php/local_variables.php'; if( !headers_sent() ){ header("Location: ".$system_domain_url."?refresh=1"); }else{ ?> <script type="te
<?php
ob_start();
$local_Dir = '../';
include $local_Dir.'resources/php/local_variables.php';
if( !headers_sent() ){
header("Location: ".$system_domain_url."?refresh=1");
}else{
?>
<script type="text/javascript">
document.location.href="<?php echo $system_domain_url; ?>?refresh=1";
</script>
Redirecting to <a href="<?php echo $system_domain_url; ?>?refresh=1"><?php echo $system_domain_url; ?></a>
<?php
}
ob_end_flush();
die();
document.location.href=“?刷新=1”;
重定向到
如果没有显示页面的代码,我们就无能为力了。当你手动去那里时会发生什么。我想你重定向很好,而你在另一个页面上有问题。当你到达该页面时,当你手动刷新时会发生什么?你在目标页面上使用jQuery吗?调整目标页面大小是否有助于显示其内容(调整窗口大小)?我曾经遇到过类似的问题,当一个页面的内容被隐藏,直到它被调整大小或滚动时,没有显示页面的代码,人们就无能为力了。当你手动去那里时会发生什么。我想你重定向很好,而你在另一个页面上有问题。当你到达该页面时,当你手动刷新时会发生什么?你在目标页面上使用jQuery吗?调整目标页面大小是否有助于显示其内容(调整窗口大小)?我曾经遇到过类似的问题,当一个页面的内容被隐藏,直到它被调整大小或滚动
<html>
<head>
<style type="text/css">
:root #content > #right > .dose > .dosesingle,
:root #content > #center > .dose > .dosesingle,
:root #header + #content > #left > #rlblock_left
{ display: none !important; }
</style>
</head>
<body>
</body>
</html>