Peak码支付系统伪静态代码

阿新
1年前发布
温馨提示:
本文最后更新于2024年08月19日,已超过175天没有更新,若内容或图片失效,请留言反馈。

搭建环境

php8.0 +sql5.7 需安装 SW扩展

以下是伪静态设置 不用设置运行目录

Nginx的

location / {
    if (!-e $request_filename){
        rewrite  ^(.*)$  /index.php?s=$1  last;   break;
    }
}
location ^~ /protected {
    deny all;
}

Apache的

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
喜欢就支持一下吧
点赞 0 分享 收藏
评论 抢沙发
取消
易航博客
SSL