.htaccess

作者: 周大湿 | 来源:发表于2019-02-02 02:06 被阅读0次

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

<IfModule mod_rewrite.c>
  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
</IfModule>

相关文章

网友评论

      本文标题:.htaccess

      本文链接:https://www.haomeiwen.com/subject/deijsqtx.html