不要重写代表文件的 URL
# These settings routes all traffic, except concrete files, to the dispatcher
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)$ index.php [NC,L]
问题是它确实将具体文件路由到调度程序:(
我怎样才能使像 http://site.com/style.css
这样的 URL 被忽略?
# These settings routes all traffic, except concrete files, to the dispatcher
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)$ index.php [NC,L]
The problem is that it does route concrete files to the dispatcher :(
How can I make it so URLs like http://site.com/style.css
are ignored?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试这个并让我知道:
您正在将所有内容重写到index.php,这将检查文件/文件夹/符号链接是否存在,然后加载文件(如果存在)。
Try this and let me know:
You were rewriting everything to the index.php, this will check if the file/folder/symlink exists and then load the file if it does.