i have old rewrite url now i want to change the pattern and don't want to lose traffic from google indexed pages.
OLD RewriteRule and php code
//php code
<?php echo SITE_URL .''. $rw['album_url'].'-album-1'; ?>
//output url
http://example.com/album-title-great-new-album-1
//.htaccess rule
RewriteRule ^(.*)-album-(.*)$ album.php?album_url=$1&page=$2 [L]
i want to change it to without losing traffic.
//php code
<?php echo SITE_URL .''.$rw['album_id'].'/album/'.$rw['album_url']; ?>
//output url
http://example.com/523/album/album-title-great-new