Throw 404 when requesting file unless HTTPS

不打扰是莪最后的温柔 提交于 2019-12-12 01:43:51

问题


I need to create a condition in my .htaccess file that will give a 404 when a user requests a file over HTTP, but not when they request it over HTTPS. I have about 15 files in the same directory that this needs to happen with (but not the others).


回答1:


Use Redirect with a status of 404 on those locations.



来源:https://stackoverflow.com/questions/3972393/throw-404-when-requesting-file-unless-https

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!