帮我apache转nginx规则


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^sopadmin/(.*)$ /sopadmin/?route=$1&%{QUERY_STRING} [PT,L]
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpe?g|png|js|css|xml)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^handle/(.*?)$ handle\.php?route=$1&%{QUERY_STRING} [PT,L]
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpe?g|png|js|css|xml)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?)$ index\.php?route=$1&%{QUERY_STRING} [PT,L]
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpe?g|png|js|css|xml)$复制代码
https://winginx.com/en/htaccess
试了这个不行 宝塔
最新回复 (4)
返回