I'd like to cut off access to a subdirectory on my site but I want any access in the subdirectory to be a 404 error, not a 403 forbidden. How can this be accomplished?
相关问题
- Backbone.js PushState routes .htaccess only workin
- Stop .htaccess redirect with query string
- .htaccess rule, redirecting old unexistent address
- What is this file in .htaccess?
- If statements in .htaccess files, to enable passwo
相关文章
- PUT to S3 with presigned url gives 403 error
- Zurb Foundation 5, modernizr not found
- hapi.js - 404 route VS static files route
- Multiple htaccess rewrite rule
- AWS ALB redirect to https
- rewrite urls for product name
- Codeigniter remove index.php - htaccess localhost
- How can I build the regex to match a string NOT co
You could also for the time being change which page a user will see when confronted with a 403 error, but I wouldn't recommend doing this long-term.
.htaccess:
Try:
This redirects all requests for the folder "
/directory/
", they get a 404 response.