烨两个想法重定向会员链接301 {永久}是搜索引擎属性的内容和链接到正确的网址最方便和最好的办法只有 它只是增加了一秒钟,以用户体验
从而完整的代码添加到启动所有affilate登陆页面更像是
{你想要绕过重定向如果affid是不存在的URL任何情况下笔记}
<?php
if (isset($_REQUEST['affid'])) {
<make call to affiliate logging code, ensure it creates no visible output>
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.example.com/this-page/");
exit();
}
?>
其余的页面内容和往常一样
上面的例子是ASP/VBScript中
,你也可以做{适当的if语句周围重定向} colfusion
<CFHEADER statuscode="301" statustext="Moved Permanently">
<CFHEADER name="Location" value="http://www.example.com/this-page/">
不要使用CFFLUSH命令在上面的标签之前,或者在Application.cfm中。 Coldfusion代码由Toll Free Forwarding.com提供。
HTTP 301重定向在Perl
#!/usr/bin/perl -w
use strict;
print "Status: 301 Moved Permanantly\n";
print "Location: http://www.example.com/this-page/\n\n";
exit;
不是一个编程问题 – 2009-12-09 20:24:16