Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我.htacces在我的域根目录中使用以下文件。
.htacces
RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt|admin|cache) RewriteRule ^(.*)$ index.php [L]
一个问题是,当我尝试打开位于cache/themes/theme1/global.css
cache/themes/theme1/global.css
但由于某些原因,它不会将该文件夹排除cache在RewriteRule
cache
RewriteRule
有谁知道这个的解决方案?
我没有对此进行测试,但应该可以;
RewriteEngine on RewriteRule ^(cache.*)$ $1 [L] RewriteCond $1 !^(index\.php|images|robots\.txt|admin|cache) RewriteRule ^(.*)$ index.php [L]