Certo posso mostrare parte del codice postato da pcrebuilding e ridotto al minimo da me.
Codice:
RewriteEngine On
# sottodirectory
RewriteBase /cartella/
# RewriteRule Offline mode
RewriteRule ^.*maintenance\.html$ /offline.phtml [L,NC]
# RewriteRule Redirector (Dropped/Unavailable Tables)
RewriteRule ^.*([0-9]+)/GRAPHIC.*CARD.*html$ /redirector.php [L,NC]
# RewriteRule Group 0
RewriteRule ^(?:0|02|03|04|05|06|07|08|09|77)/(.+)\.html$ index.phtml?item=$1 [L,QSA]
# RewriteRule Group 1
RewriteRule ^(?:1|12|14|15|16|17|18|19|101|73)/([0-9]+)/(.+)/(.+)\.html$ index.phtml?id=$1&item=$2 [L,QSA]
# RewriteRule Group 2
RewriteRule ^(?:2|20|21|22|23|24|25|26|27|28|29|74|201|202)/(.+)/(.+)\.html$ index.phtml?item=$1&group=$2 [L,QSA]
# RewriteRule Group 3
RewriteRule ^(?:3|30|31|32|33|34|35|36|37|38|39|75)/([0-9]+)/(.+)/(.+)\.html$ index.phtml?sid=$1&item=$2 [L,QSA]
# RewriteRule Group 4
RewriteRule ^(?:4|40|41|42|43|44|45|46|47|48|49|76|401|402|403 )/([0-9]+)/(.+)/(.+)/(.+)\.html$ index.phtml?sid=$1&item=$2&group=$3 [L,QSA]
# RewriteRule Group 5
RewriteRule ^(?:5|52)/([0-9]+)/(.+)/(.+)\.html$ index.phtml?page=$1&item=$2&group=$3 [L,QSA]
# RewriteRule Group 6
RewriteRule ^(?:6|61|62|63|64)/([0-9]+)/(.+)/(.+)\.html$ view_details.phtml?id=$1&item=$2 [L,NC]
# RewriteRule 7
RewriteRule ^7/([0-9]+)/(.+)/(.+)\.html$ send_post_message.phtml?id=$1&item=$2 [L,NC]
# RewriteRule 71 (Accordion)
RewriteRule ^71/([0-9]+)/(.+)/(.+)\.html$ aindex.phtml?id=$1&item=$2 [L,QSA]
# RewriteRule 72 (Accordion)
RewriteRule ^72/(.+)/(.+)\.html$ aindex.phtml?item=$1&group=$2 [L,QSA]
# RewriteRule 8
RewriteRule ^8/([0-9]+)/(.+)/(.+)\.html$ send_post_message.phtml?id=$1&item=$2&post=1 [L,NC]
# RewriteRule 9
RewriteRule ^9/download/(.+)$ ./public/$1 [L,NC]
# RewriteRule 91
RewriteRule ^91/([0-9]+)/(.+)/(.+)/(.+)/download/(.+)$ download.phtml?sid=$1&item=$2&group=$3&file=$5 [L,NC]
# RewriteRule 92
RewriteRule ^92/graph_draw/([0-9]+)/(.+)/([0-9]+).jpg$ graph_draw.php?graph_mode=$1&item_alias=$2&graph_i d=$3 [L,NC]
# RewriteRule 93
RewriteRule ^93/([0-9]+)/(.+)/(.+)/(.+)\.html$ index.phtml?sid=$1&item=$2&group=$3&details=1 [L,QSA]
# RewriteRule 94
RewriteRule ^94/([0-9]+)/(.+)/(.+)/(.+)/download/(.+)$ index.phtml?sid=$1&item=$2&group=$3&file=$5 [L,QSA]
# RewriteRule 95
RewriteRule ^95/([0-9]+)/(.+)/(.+)/download/(.+)$ index.phtml?sid=$1&item=$2&group=$3&file=$4&object _group=1 [L,QSA]
# RewriteRule 10
RewriteRule ^10/legal_stuff/(.+)/(.+)\.html$ legal_stuff.phtml?legal=$1&type=$2 [L,NC]
Questo mi produce http 500 anche se il RewriteRule non corrisponde mai al pattern, il caso più semplice è il percorso che finisce con cartella/ (come scritto anche nel RewriteBase).