htaccess:停止所有文件夹中的 htaccess 工作
我需要一些关于此 htaccess 代码的帮助
RewriteRule ^([0-9a-z\-\_]+)?$ /index.php?url=$1 [L,QSA,NC]
此代码更改了所有重写网址
/测试帖子名称
/index.php?url=test-post-name
但它影响所有文件夹
意味着
我在这个路径
site.com/vb
中有 vb但 url 应用程序像
site.com/vb/?url=
我该如何解决这个
问题 site.com/vb/index.php
或 site.com/vb
i need some help in this htaccess code
RewriteRule ^([0-9a-z\-\_]+)?$ /index.php?url=$1 [L,QSA,NC]
This code change all rewrite urls from
/test-post-name
/index.php?url=test-post-name
but it affect all folders
mean
i have vb in this path
site.com/vb
but the url apper like
site.com/vb/?url=
how can i fix this
to besite.com/vb/index.php
or site.com/vb
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
仅当请求未指向有效目录或文件时才会发生以下重写:
要禁用
/vb
文件夹内的任何重写,您可以在其中添加.htaccess
文件夹并打开重写引擎:The following rewrite will only take place if the request not points to a valid directory or file:
To disable any rewrites inside your
/vb
folder you could add a.htaccess
into that folder and turn of the rewrite engine: