url rewriting index.php

Posted by bean on Stack Overflow See other posts from Stack Overflow or by bean
Published on 2010-04-16T12:01:13Z Indexed on 2010/04/16 12:03 UTC
Read the original article Hit count: 347

Filed under:
|
|

i have urls like

http://mysite.com/index.php?p=resources
http://mysite.com/index.php?p=resources&s=view&id=938

but i want urls like

http://mysite.com/resources
http://mysite.com/resources/view/938

instead of making hundreds of rewrite rules i wonder if it would be possible to just have one? Ive head this is possible by "getting the uri and splitting it into parts" and then just add a rewrite rule for index.php

but how? could someone give an example or link a tutorial

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about url-rewriting