Htaccess redirect vbulletin

Discussion in 'Apache' started by abrahamt, Mar 18, 2014.

  1. #1
    Hello good day friends, I'm trying to redirect some threads in vbulletin from full version to archive version, I just have some problems and I have not been able to resolve it.
    I have the url: http://sitename.com/forum/showthread.php?9999-thread-name
    and I want redirect to:
    http://sitename.com/forum/archive/index.php/t-9999

    I have:
    Options + FollowSymLinks
    RewriteEngine on
    RewriteRule ^showthread\.php?([0-9]+)$ archive/index.php/t-$1 [R = 301, L] 
    Code (markup):
    That code generates the following URL:
    http://sitename.com/forum/archive/index.php/t-?9999
    A question mark is added before the thread id, which may be? or what I´m doing wrong? Greetings!
     
    abrahamt, Mar 18, 2014 IP
  2. HassanKhalid

    HassanKhalid Active Member

    Messages:
    158
    Likes Received:
    6
    Best Answers:
    4
    Trophy Points:
    90
    #2
    Redirect 301 /forum/showthread.php?9999-thread-name http://sitename.com/forum/archive/index.php/t-9999
    Code (markup):
     
    HassanKhalid, Mar 18, 2014 IP