打个比方了,一般超链接直接链接向csdn就是这样http://www.csdn.net
可是我想通过我的网站转向csdn,比如这样
http://www.myweb.com/t.php?url=http://www.csdn.net那这个t.php应该怎么样写?哪有开源的程序么?

解决方案 »

  1.   

    header("location:".$_GET['url']);
    exit;
      

  2.   

    header('location:'.$_GET['url']);
      

  3.   


    我t.php这样写的
    <?php
    header("location:".$_GET['url']);
    exit;
    ?>
    为什么这样调用http://www.kauiwan.com/t.php?url=http://www.hao123.com
    却出错ForbiddenYou don't have permission to access /t.php on this server.Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.Apache Server at www.kauiwan.com Port 80
      

  4.   

    提示没有权限。检查是否对t.php有操作权限。
      

  5.   

    apache配置有问题吧,把网站根目录的Directory配置段发上来看看。
      

  6.   

    很明显httpd.conf把目录/文件给禁了,找管理员吧。