Mod - rewrite - old /new website

Discussion in 'Search Engine Optimization' started by Stanley23b, Aug 7, 2007.

  1. #1
    Im going to replace my website for a new website with a new design.
    Of course it would be very nice to keep my visitors who are finding me in google. My old website is built using a database with gives urls like this:
    - http://www.klusvraagbaak.nl/prikbord.php?artikel=7146
    - http://www.klusvraagbaak.nl/zoek.php?pid[]=30&pid[]=32
    terrible ;)
    i want to make a 301 redirect using mod rewrite and change all urls ending with /prikbord?artikel=XXXX to www.klusvraagbaak.nl/forum
    and all urls ending with /zoek.phpXXXXX to www.klusvraagbaak.nl

    I ve read a few things about mod rewrite but this is just to difficult for me.

    Im looking forward to some reactions!

    P.s. this was dutch english
     
    Stanley23b, Aug 7, 2007 IP
  2. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #2
    i suggest you to visit dp Apache forums.

    you may get better response there
     
    trichnosis, Aug 7, 2007 IP
  3. Lexiseek

    Lexiseek Banned

    Messages:
    2,499
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Here you go:

    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^prikbord.php?artikel=([0-9]) zoek.php?pid[]=$1&pid[]=$2 [R,L=301]
    
    Code (markup):
    That's the basics.
     
    Lexiseek, Aug 7, 2007 IP