
如题描述,文章、后台访问正常,但是几乎所有样式表 404,已加伪静态(开关伪静态没有改变)。

服务器是 lnmp 一键安装包配置的。
虚拟主机配置文件
server { listen 443 ssl; server_name mysite.com; root /home/wwwroot/type/; index index.php; include enable-php-pathinfo.conf; include enable-php.conf; #try_files $uri =500; ssl_certificate /path/; ssl_certificate_key /path/; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers HIGH:!aNULL:!MD5; #if (!-e $request_filename) { # rewrite ^(.*)$ /index.php$1 last; #} #location ~ .*\.php(\/.*)*$ { # include enable-php.conf; # include enable-php-pathinfo.conf; #} location / { index index.html index.php; if (-f $request_filename/index.html) { rewrite (.*) $1/index.html break; } if (-f $request_filename/index.php) { rewrite (.*) $1/index.php; } if (!-f $request_filename) { rewrite (.*) /index.php; } } access_log /home/wwwroot/type-access.log; } server { listen 80; server_name mtsite.com; root /home/wwwroot/type/; index index.php; include enable-php-pathinfo.conf; include enable-php-pathinfo.conf; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;preload" always; #force rewrite_to_https return 301 https://$server_name$request_uri; } nginx-error 没有报错信息,
有老哥能指点一下吗?万分感谢。
还是给下站点吧;click
1 Tink PRO 用默认主题也会这样吗 |
3 vpsor 2019 年 9 月 14 日 检查 404 有以下几个思路解决: 1. 文件是否缺失 2. .htaccess 规则是否不正确( Apache 服务器) 3. 大小写路径问题(可能包含中文路径问题) |