301 Premanent Redirect through .HTACCESS help!

Discussion in 'Apache' started by sumitt_2004, Sep 24, 2010.

  1. #1
    sumitt_2004, Sep 24, 2010 IP
  2. The_Hatta

    The_Hatta Greenhorn

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #2
    
    RewriteRule ^/(.*)$ page.php?id=10 [R=301,L]
    
    Code (markup):
    The above will only do the one, page...

    
    RewriteRule ^/(.*)$ page.php?id=$1 [R=301,L]
    
    Code (markup):
    and that one should do all .... IE page.php?id=1 , page.php?id=2 so on and so forth
     
    The_Hatta, Sep 24, 2010 IP
  3. sumitt_2004

    sumitt_2004 Peon

    Messages:
    154
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply. But it's not working for me. Please check my code
     
    sumitt_2004, Sep 27, 2010 IP
  4. SovietZoo

    SovietZoo Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yea doesn't work on localhost though
     
    SovietZoo, Oct 1, 2010 IP