Help in redirection in htacces

Discussion in 'Apache' started by nfs4t, Aug 20, 2009.

  1. #1
    Hi

    I want to redirect such a link

    http://mydomain.com/module.php?name=Video_Stream&page=watch&id=6599

    to

    http://mydoman.com/index.php?p=6599

    how I can do that in htaccess
     
    nfs4t, Aug 20, 2009 IP
  2. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #2
    Try this

    Options +FollowSymLinks
    RewriteEngine on
    RewriteRule module.php?name=Video_Stream&page=watch&id=(.*)$ index.php?p=$1 [R=301,L]
     
    Bohra, Aug 20, 2009 IP
  3. nfs4t

    nfs4t Guest

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    really thank you for the help . I have been trying to do this for over two days
     
    nfs4t, Aug 20, 2009 IP