简单的PHP重定向代码
<?
if (($_SERVER["SERVER_NAME"])=="www.yourname.com") {
header("Location: http://www.yourname.com/blog");
exit;
}
else {
header("Location: home.jsp");
exit;
}
?>
相关文档(Relevant Entries)
TrackBack URL for this entry:
http://www.wujianrong.com/mt-tb.cgi/3125
http://www.wujianrong.com/mt-tb.cgi/3125