如何强制某些URL的非SSL - (.htacces)

时间:2017-04-12 22:32:42

标签: php .htaccess http ssl https

如何为一个文件强制使用NON-SSL?在这种情况下:

整个网站在HTTPS上运行 我需要在HTTP上运行这个确切结构中的一个文件: https://sitename.com/folder1/folder2/folder3/FileName.php?....string ....

我在" folder3"上创建了一个.htacces。但是,......不要工作

RewriteEngine On

# Force non-SSL for certain URL's
RewriteCond %{HTTPS} on

RewriteRule ^https\:\/\/sitename\.com\/folder1\/folder2\/folder3\/FileName\.php\/?(.*)$ "http\:\/\/sitename\.com\/folder1\/folder2\/folder3\/FileName\.php\/?\/$1" [R=301,L,QSA]

Deny From All
<FilesMatch "^FileName\.php$">
Allow From All
</FilesMatch>

示例网址:https://pepecine.online/plugins/streaming/plugin/online.php?http://powvideo.net/yh24veoqgiop

由于

0 个答案:

没有答案