友价交易商城源码 后台修漏洞修改方法 互站网交易平台程序

178 0
2019-6-2 16:33:41
显示全部楼层
QQ图片20190602162747.png

1、用记事本 填写以下代码文件,重命名为 web.config
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <configuration>
  3.     <system.webServer>
  4.         <handlers accessPolicy="Read" />
  5.     </system.webServer>
  6. </configuration>
复制代码
2、到宝塔后台,修改为以下伪静态为
  1. location / {
  2.         if (!-e $request_filename) {
  3. rewrite vip(.*) /shop/view.php?str=$1 last;
  4. rewrite ^/(.*)/search(.*).html /$1/index.php?str=$2 last;
  5. rewrite ^/(.*)/view([0-9]*).html /$1/view.php?id=$2 last;
  6. rewrite ^/(.*)/(.*)list(.*).html /$1/$2list.php?str=$3 last;
  7. rewrite ^/(.*)/(.*)view(.*).html /$1/$2view.php?id=$3 last;
  8.         }
  9.    location ~* ^/((.*)upload|ad|gg|gg1|img|homeimg|js|css|ckeditor\/attached|(.*)upload1|(.*)upload2|(.*)upload3)/.*\.(php|php5|asp)$

  10. {

  11. deny all;

  12. }     
  13.     }
  14.    
  15. location ~* ^/((.*)upload|ad|gg|img|ckeditor\/attached|(.*)upload1|(.*)upload2|(.*)upload3)/.*\.(php|php5|asp)$
  16. {
  17. deny all;
  18. }

  19. if ($host = 'yilenet.cn' ) {
  20. rewrite ^/(.*)$ https://www.yilenet.cn/$1 permanent;
  21. }
复制代码
QQ图片20190602162823.png

最后用 Ctrl+F5 强制刷新,后台清除缓存 就搞定了!!!(最后这一个只需要修改提示的文件夹名称)
QQ图片20190602163039.png