Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/290.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
Php 为什么我的htaccess文件在没有http的情况下不重定向链接_Php_Apache_.htaccess_Redirect - Fatal编程技术网

Php 为什么我的htaccess文件在没有http的情况下不重定向链接

Php 为什么我的htaccess文件在没有http的情况下不重定向链接,php,apache,.htaccess,redirect,Php,Apache,.htaccess,Redirect,我一直试图通过我的网站进行重定向,但目前当我提供重定向链接时,除非您添加http,否则无法正确重定向 重定向url tracker02.globaltracking.com/ric?track=100&go=www.fox.com .htaccess文件 RewriteEngine On RewriteBase / RewriteCond %{ENV:PROCESSED} TRUE RewriteRule (.*) $1 [S=2] RewriteCond %{QUERY_STRI

我一直试图通过我的网站进行重定向,但目前当我提供重定向链接时,除非您添加http,否则无法正确重定向

重定向url

tracker02.globaltracking.com/ric?track=100&go=www.fox.com
.htaccess文件

RewriteEngine On
RewriteBase /

RewriteCond %{ENV:PROCESSED} TRUE
RewriteRule (.*) $1 [S=2]

RewriteCond %{QUERY_STRING} ^.*([^?&]*)go=
RewriteCond %{QUERY_STRING} ^.*([^?&]*)track=
RewriteRule ^(rd) /redirect.php

RewriteCond %{HTTP_COOKIE} id=([^;]+) [NC]
RewriteRule ^(rd)$ https://%{HTTP_HOST}/pros_redirect.php?atid=%1 [R=permanent,QSA,L]

RewriteCond %{HTTP_COOKIE} !id=[^;]+ [NC]
RewriteCond %{QUERY_STRING} ^.*&go=([^?&]*)\??([^&]*)&*.*$
RewriteRule ^ric$ ${allowed_sites:%1|/ric.gif}?%2 [NE,E=PROCESSED:TRUE]

RewriteCond %{ENV:PROCESSED} TRUE
RewriteCond %{QUERY_STRING} ^(.*)%26(.*)$
RewriteRule (.*) $1?%1&%2 [NE,N]

RewriteCond %{ENV:PROCESSED} TRUE
RewriteRule (.*) $1 [NE,L]

RewriteRule ^(ric)$ /ric.gif [L]
有人能帮我吗。。我得到的错误是

在此服务器上找不到请求的URL/www.fox.com


任何htaccess专家都很难理解您的规则和面临的问题。您在浏览器中输入的导致404的URL是什么?仅供参考,查询字符串从未有过?字符,所以我不确定RewriteCond%{QUERY\u STRING}^.*&go=[^?&]*\??[^&]*&*$如何为您工作。