#### 网站正常运行需要配置伪静态(URL重写)
> 宝塔伪静态配置文件默认地址:/www/server/panel/vhost/rewrite/www.xxxxx.com.conf;
```
location ~ ^/(\.user.ini|\.htaccess|nginx\.htaccess|\.git|\.svn|\.project|LICENSE|README.md|readme.txt)
{
return 404;
}
location ~ \.well-known{
allow all;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css|ico)?$
{
expires 12h;
}
location ^~ /static/ {
break;
}
location ^~ /uploads/ {
break;
}
location ^~ /wwwlogs/ {
break;
}
location / {
index index.html index.php;
if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css|swf|eot|svg|ttf|woff|woff2)$") {
break;
}
if (!-f $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
autoindex off;
}
```