Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.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
Redirect 我可以修改Akamai重定向中的路径吗?_Redirect_Http Status Code 301_Akamai - Fatal编程技术网

Redirect 我可以修改Akamai重定向中的路径吗?

Redirect 我可以修改Akamai重定向中的路径吗?,redirect,http-status-code-301,akamai,Redirect,Http Status Code 301,Akamai,我需要创建Akamai 301重定向规则 我想重定向来自以下站点的所有流量: * 致: * 我可以通过控制中心轻松地做到这一点,作为“仅更改主机名的相对重定向”-但我需要从目标URL中删除子目录。我还需要剩下的路完好无损 因此example.com/subdirectory/file.html应该重定向到subdomain.example.com/file.html 我可以在web服务器级别的htaccess中实现这一点,但我需要在Akamai实现这一点 有什么建议吗?您可以在配置中使用“修改传

我需要创建Akamai 301重定向规则

我想重定向来自以下站点的所有流量: *

致: *

我可以通过控制中心轻松地做到这一点,作为“仅更改主机名的相对重定向”-但我需要从目标URL中删除子目录。我还需要剩下的路完好无损

因此example.com/subdirectory/file.html应该重定向到subdomain.example.com/file.html

我可以在web服务器级别的htaccess中实现这一点,但我需要在Akamai实现这一点

有什么建议吗?

您可以在配置中使用“修改传出请求路径”行为,并选择“删除传入请求路径的一部分”仅用于第一次出现。这应该能奏效