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.
我目前有以下 htaccess 重写规则:
RewriteRule (.*) index.php/$1 [L]
如何使它排除 2 个特定字符串,例如:“模板”和“图像”?
我读了其他帖子,但我不清楚。
你可以做一个否定的重写条件
像这样:
RewriteCond %{REQUEST_URI} !^/(template|image) RewriteRule (.*) index.php/$1 [L]
这实际上不会重写任何指向图像和模板文件夹中事物的 url。
RewriteCond