Problemi sul mod_rewrite

il problema sul mod_rewrite ha la seguente soluzione, apportabile tramite .htaccess file.

Consiste nel modificre la radice del mod_rewrite, per esempio così presentata:

RewriteRule ^/grp([0-9]+).php$ group.php?id=$1 [L]
RewriteRule ^/art([0-9]+).php$ article.php?id=$1 [L]
RewriteRule ^/age([0-9]+).php$ agenda.php?id=$1 [L]
RewriteRule ^/member_([0-9]+).php$ member.php?id=$1 [L]

nel seguente modo(ovvero introducendo uno / prima della pagina.php) =>

RewriteRule ^/grp([0-9]+).php$ /group.php?id=$1 [L]
RewriteRule ^/art([0-9]+).php$ /article.php?id=$1 [L]
RewriteRule ^/age([0-9]+).php$ /agenda.php?id=$1 [L]
RewriteRule ^/member_([0-9]+).php$ /member.php?id=$1 [L]