how can I redirect such link to another link?

Discussion in 'General Chat' started by kk890, Feb 24, 2009.

  1. #1
    kk890, Feb 24, 2009 IP
  2. DomainCo.US

    DomainCo.US Well-Known Member

    Messages:
    2,124
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    100
    #2
    you can use a meta refresh tag

    <meta http-equiv="refresh" content="2;url=http://xxx.com">
     
    DomainCo.US, Feb 24, 2009 IP
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    Kerosene, Feb 24, 2009 IP
  4. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4

    how to do this?
    do you know what i want to do?
     
    kk890, Feb 24, 2009 IP
  5. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    try before, can not work..you can test in your site
     
    kk890, Feb 24, 2009 IP
  6. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #6
    Try this in your .htaccess

     URL rewrite rules
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^download.php?uid=28HRJYKN/?[1]$ delete.php [L,NC,QSA]
    </IfModule>
    
    PHP:

    Lemme know if it works. :)
     
    humm, Feb 24, 2009 IP
  7. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7

    thx.. but can not wrok..
     
    kk890, Feb 24, 2009 IP
  8. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #8
    Three suggestions and none of them 'wrok'?

    Are you sure you're trying hard enough? Meta refresh should work on any server.
     
    Kerosene, Feb 24, 2009 IP
  9. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9

    <meta http-equiv="refresh" content="2;url=http://xxx.com">

    how to do Meta refresh ?


    i just want to redirect the following link,
    http://xxx.com/download.php?uid=28HRJYKN

    to
    http://xxx.com/delete.php

    how can i do that?
     
    kk890, Feb 24, 2009 IP
  10. humm

    humm बहादुर बच्चा

    Messages:
    4,346
    Likes Received:
    850
    Best Answers:
    0
    Trophy Points:
    310
    #10
    humm, Feb 24, 2009 IP
  11. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    becasue it is not folder or file like .php,
    it is a link download.php?uid=28HRJYKN

    so I really don't know how to redirectly it..
    anybody knows?thx
     
    kk890, Feb 24, 2009 IP
  12. ads2help

    ads2help Peon

    Messages:
    2,142
    Likes Received:
    67
    Best Answers:
    1
    Trophy Points:
    0
    #12
    Since you are using PHP,

    1. Open your download.php
    2. Add this line on top, after <?php
    if ($_GET['uid'] == '28HRJYKN') {
    header('location: http://xxx.com/delete.php');
    exit;
    }
    PHP:
    - ads2help
     
    ads2help, Feb 24, 2009 IP
  13. kk890

    kk890 Peon

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #13
    this method works^^..thx
     
    kk890, Feb 24, 2009 IP