Commit 7e05460c authored by houdong's avatar houdong

新文件

parent d0fd835e
Pipeline #148 failed with stages
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2014 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// 应用入口文件
header("Content-type: text/html; charset=utf-8");
defined('ROOT_PATH') or define('ROOT_PATH', dirname(__FILE__));
// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false
define('APP_DEBUG',true);
define('EXEC_LOG',0);//日志记录起点,单位秒 0为全部记录 100为最大值 不记录 如 0.0003
//入口项目
define('APP_NAME','app');
define('APP_PATH','./app/');
/**
* 增加pc跳转到m站的逻辑
*/
require './mobile.php';
if(new_isMobileRequest()){
if(strpos($_SERVER['HTTP_HOST'],'vip.cofool.com')===FALSE){
if(strpos($_SERVER['REQUEST_URI'],'H5')===FALSE){
// header('Location: /H5');
}
}else{
//在action中已控制跳转
// header('Location: http://m.cofool.com/Group/allex/groupId/20202?_tag=vip');
}
}
//echo 33;exit;
// 引入ThinkPHP入口文件
require './ThinkPHP/ThinkPHP.php';
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="matchRedirec" stopProcessing="false">
<match url="^t/([0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="/Group/detail/itemID/{R:1}" appendQueryString="false" logRewrittenUrl="false" />
</rule>
<rule name="schoolRedirec">
<match url="^k/([0-9]+)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Rewrite" url="/School/course/c/{R:1}" />
</rule>
<rule name="botw" patternSyntax="ECMAScript" stopProcessing="true">
<match url="^(.*)cofooltopnew.asp" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="http://www.cofool.com/gotostock/cofooltop.asp" />
</rule>
<rule name="bootm" stopProcessing="true">
<match url="^(.*)cofoolbotoomnew.asp" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="http://www.cofool.com/gotostock/cofoolbotoom.asp" />
</rule>
<rule name="软件注册" stopProcessing="true">
<match url="^(.*)stocksoftreg.asp" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
<action type="Redirect" url="http://www.cofool.com/Passport/register" />
</rule>
<rule name="OrgPage" stopProcessing="true">
<match url="^(.*)$" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^(.*)$" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php/{R:1}" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<staticContent>
<mimeMap fileExtension="." mimeType="application/octet-stream" />
</staticContent>
<handlers>
<remove name="php" />
<add name="php" path="*.php" verb="GET,POST,HEAD" modules="FastCgiModule" scriptProcessor="D:\soft\php\php5.6\php-cgi.exe" resourceType="Unspecified" requireAccess="Script" />
</handlers>
</system.webServer>
</configuration>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment