![](/img/trans.png)
[英]Rewrite all URL to index.php except from '/Serene/Assets/'
[英]Rewrite all URL to index.php except whitelist
在.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]
但是我有两个问题:
尝试这个:
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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.