当前位置:论坛首页 > Linux面板 > 求助

这个问题之前有人在论坛求助过,不过没解决

发表在 Linux面板2018-3-17 15:18 [复制链接] 0 1145

11.png

nginx规则是这样:
rewrite ^/(uploads/.*?_\d+x\d+\.(jpg|gif|png|jpeg))$ /image/index.php?$1 last;
rewrite ^/(?:v5|modules|system)\b.* /index.php/$0 last;
if (!-f $request_filename){
        set $rule_2 1$rule_2;
}
if ($uri !~ "^/(uploads|public|newtravel|phone|payment|min)(/)?"){
        set $rule_2 2$rule_2;
}
if ($rule_2 = "21"){
        rewrite /.* /index.php/$0;
}





.htaccess规则是这样:
# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /
#mobile start
#mobile end
RewriteRule ^(uploads/.*?_\d+x\d+\.(jpg|gif|png|jpeg))$ /image/index.php?$1 [L]

# Protect hidden files from being viewed
<Files .*>
        Order Deny,Allow
        Deny From All
</Files>


# Protect application and system files from being viewed
RewriteRule ^(?:v5|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !^/(uploads|public|newtravel|phone|payment)(/)?
#RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]


我的环境是linux+nginx,
问下出现这个提示是怎么回事呢,如果是伪静态规则错误了,怎么改呢?
希望管理员能看到,大宋泡面
使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

点击联系技术免费分析

工作时间:09:00至18:30

快速回复 返回顶部 返回列表