0
我有一个网站,其中一些地区使用https,但是我有问题,将一些https网址更改为http。这正是我需要的:.htaccess将https url重定向到http
更改此网址URL
https://www.domain.com/somefile.php?PossibleGetParameters
这样:
http://www.domain.com/somefile.php?PossibleGetParameters
这是我对我的.htaccess:
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^(/somefile.php)
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
有了这个条件所有的https网址都变成了http,我只希望这个特定的网址改变。有没有什么办法解决这一问题?