帮我apache转nginx规则

82次阅读

共计 677 个字符,预计需要花费 2 分钟才能阅读完成。

  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
试了这个不行 宝塔

网友回复:

注册 马什么梅???

龙吟只要紫薇 楼下来

251768938 直接填肯定不行的啊!

委员 不帮

正文完
 0