.htaccess 516 B

1234567891011121314151617181920
  1. # #原始的有点不好用
  2. #<IfModule mod_rewrite.c>
  3. # Options +FollowSymlinks -Multiviews
  4. # RewriteEngine On
  5. #
  6. # RewriteCond %{REQUEST_FILENAME} !-d
  7. # RewriteCond %{REQUEST_FILENAME} !-f
  8. # RewriteRule ^(.*)$ Index.php/$1 [QSA,PT,L]
  9. #</IfModule>
  10. # #百度后更改了 一个设置
  11. <IfModule mod_rewrite.c>
  12. Options +FollowSymlinks -Multiviews
  13. RewriteEngine On
  14. RewriteCond %{REQUEST_FILENAME} !-d
  15. RewriteCond %{REQUEST_FILENAME} !-f
  16. RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
  17. </IfModule>