Htaccess... Change: mysite.com/x/1/y/2/z/3 To: mysite.com/1/2/3

Hello,

I’m working on a site that has a navigation structure as follows:
mysite.com/?parent=services&child=design&page=overview

I am currently converting the above to this:
mysite.com/parent/services/child/design/page/overview
Using…

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

RewriteRule ^([^/=]+)=([^/]*)(/(.+))?$ /$4?$1=$2 [N,QSA]
RewriteRule ^([^/=]+)/([^/=]+)(/(.+))?$ /$4?$1=$2 [N,QSA]
RewriteRule ^([^/=]+)(/(.+))?$ /$3?$1 [N,QSA]

I need to be able to change it to:
mysite.com/services/design/overview

The site has over 100 pages so the URL’s change e.g. “www.mysite.com/company/about/history” but there are always 3 levels ($parent $child $page).

Is this possible? It’s really annoying me, I can’t get it to work. Can anyone help me out please!

Cheers
Dave

Have I asked a stupid question?

Sorted…

RewriteRule ^([^/]+)/([^/]+)/([^/.]+)$ /index.php?parent=$1&child=$2&page=$3 [L]