apache伪静态规则在根目录的
.htaccess
Nginx伪静态规则
禁止执行PHP的目录
```
location ~ ^/(thinkphp|vendor/phpunit|application|runtime)/.\*\\.php
{
return 404;
}
location / {
if (!-e $request\_filename) {
rewrite ^(.\*)$ /index.php?s=$1 last;
break;
}
}
```
或者
```
location / {
if (!-e $request\_filename){
rewrite ^(.\*)$ /index.php?s=$1 last; break;
}
}
```
**注意!注意!**
如果PPVOD启用了了ssl证书,网盘也必须使用ssl 否则将无法上传文件到服务器