Ho trovato in un sito questo esempio ma non riesco ad applicarlo qualcuno ci capisce qualcosa :
----------------------------------------------------------------------------------------
This simple guide will teach you how to automatically rewrite your urls for mod_rewrite in php using output buffering.
First of all start your php script with an ob_start() function, now place the following at the end:
$content = ob_get_contents();
ob_end_clean();
$rewrite = array(
‘#index\.php\?page=(.*?)#is’ => ‘\\1_page.html’
)
echo preg_replace(array_keys($rewrite), array_values($rewrite), $content);
This will automatically convert all urls found in the array (old=> new), Now you will have add to your .htaccess file.For the format we are using your htaccess would look like this:
1. RewriteEngine On
2. RewriteRule ^(.*)_page.html$ index.php?page=$1 [L]
And thats how simple mod_rewrite really is.
--------------------------------------------------------------------------------------