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.
我在http://www.example.com/my-inner-page有一个页面。当有人尝试访问此 url 时,我需要我的服务器以 404 响应。我将在 htaccess 中使用什么规则来完成此操作?
谢谢!
您可以使用重定向匹配:
RedirectMatch 404 "my-inner-page"