CodeIgnitor的rewrite规则用法

作者:袖梨 2022-06-25
 代码如下 复制代码


  RewriteEngine On
  RewriteBase /codeigniter
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php/$1 [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond $1 !^(index.php|images|robots.txt|css)
  RewriteRule ^(.*)$ index.php/$1 [L]


  ErrorDocument 404 /index.php

相关文章

精彩推荐