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 htaccess从一个域重定向到另一个授权,该授权不在头中工作_.htaccess_Codeigniter - Fatal编程技术网

.htaccess htaccess从一个域重定向到另一个授权,该授权不在头中工作

.htaccess htaccess从一个域重定向到另一个授权,该授权不在头中工作,.htaccess,codeigniter,.htaccess,Codeigniter,我们已经在codeigniter中为android应用程序创建了webservice 现在我们正在移动我们的领域。我们无法为正在使用当前域Web服务的用户提供快速更新 所以尝试在我的旧域中使用htaccess规则 以下是我添加的规则 <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^olddomain.com$ RewriteRule (.*)$ http://www.newdomain

我们已经在codeigniter中为android应用程序创建了webservice

现在我们正在移动我们的领域。我们无法为正在使用当前域Web服务的用户提供快速更新

所以尝试在我的旧域中使用htaccess规则

以下是我添加的规则

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^olddomain.com$
  RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L]
</IfModule>
当我们从一个域重定向到另一个域时,我不知道如何传递头数据

$header = getallheaders();

$header['Authorization'] //we are not getting this one