.htaccess redirect

Discussion in 'Apache' started by mikebrad0927, Feb 7, 2007.

  1. #1
    So I guess I'll join the ranks of people asking these questions here. It seems simple enough but I keep getting an internal server error. I just moved my site from wordpress with smf to joomla-smf and I've everything redirected except for the forum

    old url

    xhttp://www.gearadrift.com/navy-forums/index.php?board=X.X

    new url

    xhttp://www.gearadrift.com/component/option,com_smf/Itemid,83/board,X.X/



    Tried RedirectMatch but couldn't get it to work, something like:

    RedirectMatch /navy-forums/index.php?board=(*) /component/option,com_smf/Itemid,83/board,$1/

    Any help? I'm sure I'm just making a simple mistake (or I'm completely way off) :)
     
    mikebrad0927, Feb 7, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^navy-forums/index.php?board=(.*)$ http://www.domain.com/component/option,com_smf/Itemid,83/board,$1/ [R=301,L]
     
    Nintendo, Feb 7, 2007 IP