查看主题内容
李天一 伪静态有啥用?
发现安装插件时候,点击安装后,提示安装成功,但是却不显示效果,跟这个设置伪静态有关吗?
我的 Nginx 下把伪静态设置于添加到了下面位置,重启 Nginx 好像也没什么变化,希望有人能指点一下~
server { listen 80 default_server reuseport; #listen [::]:80 default_server ipv6only=on; server_name _; index index.html index.htm index.php; root /home/wwwroot/default; #error_page 404 /404.html; # Deny access to PHP files in specific directory #location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; } include enable-php.conf; location /nginx_status { stub_status on; access_log off; } location ~* \.(htm)$ { rewrite "^(.*)/(.+?).htm(.*?)$" $1/index.php?$2.htm$3 last; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } location ~ /.well-known { allow all; } location ~ /\. { deny all; } access_log /home/wwwlogs/access.log; }
Tillreetree 这帖子里的Apache部分误导了一大堆的人……其实两种版本是分开的,不是复制粘贴就完事的