mod rewrite and query strings

Posted by all-R on Stack Overflow See other posts from Stack Overflow or by all-R
Published on 2010-04-09T00:34:26Z Indexed on 2010/04/09 0:43 UTC
Read the original article Hit count: 396

Filed under:
|
|

Hi all, I'm trying to rewrite some query strings I have in my URL like this :

foo.com/index.php?page=admin&view=news&action=edit&id=3

to

foo.com/admin/news/edit/3

But can't figure it out...

it should also works if I only have the 'page' parameters for example, since I don't always have these 4 parameters (page,view,action,id) in my urls, of course.

any suggestions?

© Stack Overflow or respective owner

Related posts about php

Related posts about apache