Fetch the repository succeeded.
注意:本项目不新增功能,但持续维护。如使用中发现问题,请留言或者提交 issue 。谢谢!!!
db/bookmark.sql
到数据库;root/config/base.php
配置数据库连接参数及其他选项;root/config/oauth.php
;root/data/*
目录为可写权限;配置文件root/config/base.php
修改:
switch (App::getName()) {
case "public":
$config["rewriteRules"] = array(
"User_Index" => "/[uid]"
);
break;
case "mobile":
$config["rewriteRules"] = array(
"User_Index" => "/m/[uid]"
);
break;
}
nginx配置url重写规则:
rewrite ^/([0-9]+)$ /?do=User_Index&uid=$1&$args last;
rewrite ^/m/([0-9]+)$ /m/?do=User_Index&uid=$1&$args last;
apache配置.htaccess
url重写规则:
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([0-9]+)$ /?do=User_Index&uid=$1&%{QUERY_STRING} [L]
RewriteRule ^m/([0-9]+)$ /m/?do=User_Index&uid=$1&%{QUERY_STRING} [L]
</ifmodule>
PHPMyAdmin
导入;SAE_MYSQL_*
开头的常量;SAE_TMP_PATH
,示例如下:配置文件root/config/base.php
添加如下代码:
// 模板编译路径
$config["templateCompilePath"] = SAE_TMP_PATH;
return $config; // 添加在此行之前
// app.yaml添加如下代码:
rewrite:
- url: ^/([0-9]+)$
script: /index.php?do=User_Index&uid=$1&$args last
- url: ^/m/([0-9]+)$
script: /m/index.php?do=User_Index&uid=$1&$args last
Sign in to post a comment
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.
Repository Comments ( 22 )