PaYphp 为个人企业提供全方位的支付解决方案
搭建环境
php8.0 +sql5.7 需安装 SW扩展
******************************************
nginx的伪静态设置
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location ^~ /protected {
deny all;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$ {
#设置缓存上面定义的后缀文件缓存到浏览器的生存时间
expires 3d;
}
******************************************
Apache的伪静态设置
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>https://console.payphp.cn/
账户 testtest
密码 testtest