更新 .htaccess 重写条件
我想更新以下重写条件以仅允许一个特定的子域。
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
目前,它匹配所有子域,但我只想允许一个 - admin.domain.com。我该怎么做?
感谢您提前提供的任何帮助。
I'll like to update the following rewrite condition to only allow one particular subdomain.
RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
At the moment, it matches all subdomains, but I'd like to allow just one - admin.domain.com. How would I do this?
Thanks for any help in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它应该有效:
我错了吗?
It should work:
Am I wrong?