Fetch the repository succeeded.
This action will force synchronization from wuwenbin/bookmark, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。