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或php的自定义重定向程序_Php_.htaccess - Fatal编程技术网

带有htaccess或php的自定义重定向程序

带有htaccess或php的自定义重定向程序,php,.htaccess,Php,.htaccess,如何创建像这样的重定向器 或 对不起,我的英语很差这里的问题是如何将url作为哈希而不是参数传递 <script> document.location = document.location.hash; </script> document.location=document.location.hash; 作为记录,如果您的目标是获取重定向到的url的哈希值,则需要在客户端执行此操作,哈希内容永远不会发送到服务器。此问题在PHP下标记?试一试 header('Lo

如何创建像这样的重定向器


对不起,我的英语很差

这里的问题是如何将url作为哈希而不是参数传递

<script>
document.location = document.location.hash;
</script>

document.location=document.location.hash;

作为记录,如果您的目标是获取重定向到的url的哈希值,则需要在客户端执行此操作,哈希内容永远不会发送到服务器。

此问题在PHP下标记?试一试

header('Location: http://www.identi.li/u#http://google.com/');

在html文件头中尝试此标记

<meta http-equiv="refresh" content="20;url=http:www.redirected.com"> 


这将在20秒后重定向

这是我理解的他在问的问题。