嘟嘟社区

[疑问] 帮我apache转nginx规则


  1. RewriteEngine On
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteRule ^sopadmin/(.*)$ /sopadmin/?route=$1&%{QUERY_STRING} [PT,L]
  5. RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpe?g|png|js|css|xml)$
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule ^handle/(.*?)$ handle.php?route=$1&%{QUERY_STRING} [PT,L]
  9. RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpe?g|png|js|css|xml)$
  10. RewriteCond %{REQUEST_FILENAME} !-f
  11. RewriteCond %{REQUEST_FILENAME} !-d
  12. RewriteRule ^(.*?)$ index.php?route=$1&%{QUERY_STRING} [PT,L]
  13. RewriteCond %{REQUEST_URI} !.*.(ico|gif|jpe?g|png|js|css|xml)$

复制代码

https://winginx.com/en/htaccess
试了这个不行 宝塔

楼下来
马什么梅???
直接填肯定不行的啊!
不帮