在.htaccess
我写过:
AddDefaultCharset UTF-8
RewriteEngine on
RewriteCond $1 !^(index\.php|images|test|css|js|files|wiki|sitemap\.xml|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L]
但我有两个问题:
答案 0 :(得分:1)
试试这个:
AddDefaultCharset UTF-8
RewriteEngine on
RewriteCond %{REQUEST_URI} !^(index\.php|images|test|css|js|files|wiki|sitemap\.xml|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ index.php/$1 [L]
Options All -Indexes