开发者

Throw 404 when requesting file unless HTTPS

开发者 https://www.devze.com 2023-01-21 14:04 出处:网络
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

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 (开发者_JS百科but not the others).


Use Redirect with a status of 404 on those locations.

0

精彩评论

暂无评论...
验证码 换一张
取 消