Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
houdong
cof_vip
Commits
7e05460c
Commit
7e05460c
authored
Jan 17, 2022
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新文件
parent
d0fd835e
Pipeline
#148
failed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
104 additions
and
0 deletions
+104
-0
index.php
index.php
+50
-0
web.config
web.config
+54
-0
No files found.
index.php
0 → 100644
View file @
7e05460c
<?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'
;
web.config
0 → 100644
View file @
7e05460c
<?
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
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment