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.
サイトのサブディレクトリへのアクセスを遮断したいのですが、サブディレクトリへのアクセスを 403 禁止ではなく 404 エラーにしたいです。これはどのように達成できますか?
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:
ErrorDocument 403 /your404pagehere.php