Redirect Problem (.htaccess)

Discussion in 'Apache' started by Infranight, May 28, 2010.

  1. #1
    Infranight, May 28, 2010 IP
  2. inoxhost

    inoxhost Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try this...

     
    inoxhost, May 29, 2010 IP
  3. Infranight

    Infranight Member

    Messages:
    319
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #3
    I seem to get a 500 internal server error with that.
     
    Infranight, May 29, 2010 IP
  4. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #4
    Try this
    RewriteEngine on
    RewriteRule    ^ad/.+/([\d]+)/    ad/$1/    [R=301,L]
    Code (markup):
     
    nabil_kadimi, Jun 1, 2010 IP
  5. Infranight

    Infranight Member

    Messages:
    319
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #5
    Unfortunately, no.
     
    Infranight, Jun 4, 2010 IP
  6. inoxhost

    inoxhost Peon

    Messages:
    80
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I am just wondering, if mod_rewrite is enabled in your server????
     
    inoxhost, Jun 4, 2010 IP
  7. irving

    irving Peon

    Messages:
    65
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    If you're not sure how to find out, put this:
    
    <IfModule mod_rewrite.c>
    (your code here)
    </IfModule>
    
    Code (markup):
    around your redirect code and let us know what you get as output.
     
    irving, Jun 4, 2010 IP