织梦首页php301重定向
来源:互联网 发布:iphone手机主题软件 编辑:程序博客网 时间:2024/05/23 11:08
<?php $jump301=1;//是否开301跳转开关,1开 0关if(substr($_SERVER['SERVER_NAME'],0,4)!='www.'&&$jump301) { header('HTTP/1.1 301 Moved Permanently'); header('Location:http://www.'.$_SERVER['SERVER_NAME']); exit(); } if(!file_exists(dirname(__FILE__).'/data/common.inc.php')) { header('Location:install/index.php'); exit(); } //自动生成HTMLif(isset($_GET['upcache']) || !file_exists('index.html')){ require_once (dirname(__FILE__) . "/include/common.inc.php"); require_once DEDEINC."/arc.partview.class.php"; $GLOBALS['_arclistEnv'] = 'index'; $row = $dsql->GetOne("Select * From `#@__homepageset`"); $row['templet'] = MfTemplet($row['templet']); $pv = new PartView(); $pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); $row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; if ($row['showmod'] == 1) { $pv->SaveToHtml(dirname(__FILE__).'/index.html'); include(dirname(__FILE__).'/index.html'); exit(); } else { $pv->Display(); exit(); }}else{ header('HTTP/1.1 301 Moved Permanently'); header('Location:index.html');}?>
0 0
- 织梦首页php301重定向
- nginx根目录重定向到首页
- wifidog源码修改首页本地重定向
- wampserver 2.5 首页链接域名重定向问题解决方法
- 用自己的域名重定向到csdn博客首页
- 优酷首页出现“此网页包含过多的循环重定向”错误的解决办法
- springMVC实现首页的重定向(<mvc:view-controller>以及<mvc:annotation-driven/>标签使用)
- 重定向
- 重定向
- 重定向
- 重定向
- 重定向
- 重定向
- 重定向
- 重定向
- 重定向
- 重定向
- 重定向
- Linux安装telnet
- 数星星
- timusoj 1748. The Most Complex Number (反素数&剪枝) 好题
- codeforces 604A Uncowed Forces
- 使用Java编写并运行Spark应用程序
- 织梦首页php301重定向
- TCP/IP协议 三次握手与四次挥手
- Codeforces 601C Kleofáš and the n-thlon(dp)
- webrtc(一) agc
- Visual Studio单元测试命令行方式
- byte[]数组和int之间的转换
- MySQL如何只导出指定的表结构和数据
- 《python爬虫》学习笔记:urllib2库的使用
- trunc函数的方法