Advanced 301 Redirect for Avarcade script

Discussion in 'Apache' started by dadaas, Oct 21, 2010.

  1. #1
    I did some redirections before, like one page to other, but now i need to redirect my old arcade game urls to new ones, can this be done by posting one or 2 lines or i need to manually convert each link.

    Here are some examples of redirecting, give me some tips or clues:

    Category redirect, this looks like not so big trouble:

    http://www.mydomain.com/cat/4/Fantasy-Defense/p1.htm
    to
    http://www.mydomain.com/cat/4/Fantasy-Defense/newest-1.html

    But games redirect is major trouble:
    http://www.mydomain.com/view/212/5-Tower-Defence
    to
    http://www.mydomain.com/Action/212/5-Tower-Defence.html

    Problem is how to change view into category? So every game is redirected properly.

    Thanks
     
    dadaas, Oct 21, 2010 IP
  2. scriptinstaller

    scriptinstaller Peon

    Messages:
    109
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just a quick stab and guess

    RewriteRule ^cat/([0-9]+)/(.*?)/(.*?).htm$ /cat/$1/$2/newest-1.html [L]


    be sure RewriteEngine On is somewhere above this line in .htaccess
     
    scriptinstaller, Oct 24, 2010 IP