Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess两个GET变量HTTPS到HTTP的重写规则_.htaccess_Http_Variables_Https_Get - Fatal编程技术网

.htaccess两个GET变量HTTPS到HTTP的重写规则

.htaccess两个GET变量HTTPS到HTTP的重写规则,.htaccess,http,variables,https,get,.htaccess,Http,Variables,Https,Get,我已经成功地使用以下代码重定向了我的两个变量,但是如果搜索引擎将其索引为https,那么我无法找到将其重定向到非安全版本的方法 重定向代码: RewriteRule ^(.*)\/(.*)\.html$ group/user.php?uid=$1&page=$2 [L] RewriteRule ^([^/\.]+)/?$ group/user.php?uid=$1 [L] RewriteRule ^([^\/\.])+[\/]([^\/\.]+)[\.]html$ group/user.

我已经成功地使用以下代码重定向了我的两个变量,但是如果搜索引擎将其索引为https,那么我无法找到将其重定向到非安全版本的方法

重定向代码:

RewriteRule ^(.*)\/(.*)\.html$ group/user.php?uid=$1&page=$2 [L]
RewriteRule ^([^/\.]+)/?$ group/user.php?uid=$1 [L]
RewriteRule ^([^\/\.])+[\/]([^\/\.]+)[\.]html$ group/user.php?uid=$1&page=$2 [L]
正确生成:testdomain.com/test/page.html

但不知何故,这个页面在谷歌中被作为一个安全页面编入了索引,我一辈子都不知道如何创建从https版本到http的重定向

我的目标是获取并重定向到

任何帮助都会很有帮助