para ver como fuinciona www.software-p2p.com
Código PHP:
Options +FollowSymLinks
RewriteEngine on
#search
#http://localhost/descargar/search/ares/
#http://localhost/descargar/search/ares/dName/
RewriteRule ^search/(.*)/$ index.php?action=search&text=$1 [L,NC]
RewriteRule ^search/(.*)/(.*)/?$ index.php?action=search&text=$1&id=$2 [L,NC]
#downloads
#www.software-p2p.com/descargar/downloads.48-d4/
#http://localhost/descargar/downloads-d4/ranquing/
RewriteRule ^(.*)-d([0-9]+)/?$ index.php?action=downloads&id=$2 [L,NC]
RewriteRule ^(.*)-d([0-9]+)/(.*).html$ index.php?action=downloads&$3=$2 [L,NC]
#categorias
#www.software-p2p.com/descargar/ares-c10/
#http://localhost/descargar/index.php?action=category&id=1&page=5
#http://localhost/descargar/ares-c10/pagina1.html
#index.php?action=cp&subscribe=0
RewriteRule ^(.*)-c([0-9]+)/pagina([0-9]+).html$ index.php?action=category&id=$2&page=$3 [L,NC]
RewriteRule ^(.*)-c([0-9]+)/?$ index.php?action=category&id=$2 [L,NC]
RewriteRule ^(.*)-s([0-9]+)/?$ index.php?action=cp&subscribe=$2 [L,NC]
RewriteRule ^(.*)-ss/?$ index.php?action=cp&act=cats [L,NC]
#index
#http://localhost/descargar/search/
RewriteRule ^(.*)/$ index.php?action=$1 [L,NC]