pankirk
06-16-2010, 08:04 PM
I found this rule online which seems to work for all of my pages so far:
RewriteRule (.*)/(.*)/$ /index.php?$1=$2
basically this takes my pages that look like this: url.com/index.php?page=index,
and turns them into this: url.com/page/index/
This is great and is exactly what i'm looking for, but I can't seem to figure out what to do when I have multiple arguments in the url.
For example, if I have this: url.com/index.php?page=index&sub=subpage.
can someone please direct me in the right direction to form that url into this: url.com/page/index/sub/subpage/
thanks a lot!
RewriteRule (.*)/(.*)/$ /index.php?$1=$2
basically this takes my pages that look like this: url.com/index.php?page=index,
and turns them into this: url.com/page/index/
This is great and is exactly what i'm looking for, but I can't seem to figure out what to do when I have multiple arguments in the url.
For example, if I have this: url.com/index.php?page=index&sub=subpage.
can someone please direct me in the right direction to form that url into this: url.com/page/index/sub/subpage/
thanks a lot!