dqq46733 2019-03-11 06:32
浏览 22

如何在不丢失流量的情况下为旧的RewriteRule创建旧RewriteRule的规则

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
  • 写回答

0条回答 默认 最新

    报告相同问题?