那个 apache直接转 nginx 貌似不行。。

apache规则- RewriteEngine on

  • RewriteCond %{REQUEST_URI} !/$
  • RewriteCond %{REQUEST_FILENAME} !-f
  • RewriteCond %{REQUEST_FILENAME} -d
  • RewriteRule ^(.*) %{REQUEST_URI}/
  • RewriteCond %{REQUEST_FILENAME} -d
  • RewriteCond %{REQUEST_FILENAME} !-f
  • RewriteRule ^(.*)$ index.php?%{QUERY_STRING}&directory=$1&modrewrite=1 复制代码用的是 AMH 。。