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,
问下出现这个提示是怎么回事呢,如果是伪静态规则错误了,怎么改呢?
希望管理员能看到,大宋泡面
|
|