.htaccess

这个是Apache的,Nginx搞不定了。
除static以外,都重新定向到index.php


  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  #RewriteCond %{REQUEST_FILENAME} !-d
  #RewriteCond %{REQUEST_FILENAME} !-f
  #RewriteRule ^(.*)$ index.php?$1 [QSA,PT,L]
  #RewriteRule ^((?!@).)*$ index.php?$1 [QSA,PT,L]
  #
  RewriteRule ^(?!static/).*$ index.php?$1 [QSA,PT,L]
  SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0

你可能感兴趣的:(.htaccess)