用php解决一个IP对应多个域名的问题
$domain_net=”abc.com”;
$dot_net_url=”bbs/”;
$dot_com_url=”flash”;
if(($HTTP_HOST==”$domain_net”)or($HTTP_HOST==”www.$domain_net”))
{
Header(“Location: $dot_net_url”);
}
else
{
Header(“Location: $dot_com_url”);
}
?>
Related posts:
About this entry
You’re currently reading “用php解决一个IP对应多个域名的问题,” an entry on Geoinformatics
- Published:
- 6.10.07 / 8下午
- Tags:
- PHP
Ajax ArcGIS Dreams Flex Geography Geoinformatics GeoRSS GIS Google Hardware Harvard History Jquery Linux Love Map MapServer NASA OGC OpenGIS OSGeo PHP Politics PostGIS PostgreSQL Python R Social Network SVG Ubuntu Web WebGIS Wordpress 中国 历史地理 宋朝 开源 新儒学 生活 遥感
WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.














赵 博 (Bo Zhao),
参与或主持的项目
2 Comments
Jump to comment form | comments rss [?] | trackback uri [?]