mod_rewrite params inversion

Posted by Fernando Constantino on Stack Overflow See other posts from Stack Overflow or by Fernando Constantino
Published on 2009-10-27T21:56:26Z Indexed on 2010/05/09 20:08 UTC
Read the original article Hit count: 183

Filed under:
|

How can I create the mod_rewrite rule so I can convert the following URLs:

From: domain/something/param/action ex:domain/cities/Chicago/view

to: domain/something/action.php?param1=param ex: domain/cities/view.php?city=Chicago

Changing to cities/view/Chicago cannot be an alternative.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about .htaccess