开发者

redirect old pages to new seo targets

i have a litte problem :(

on my site i created with mod_rewrite some rules...

RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([0-9][0-9][0-9][0-9][0-9][0-9][^/]+)$ /index.php?lang=$1&i=$2&cat=$3&item=$4 [L]

with that rule i recieve the following link

/en/article/category/item/021205

with this code above is everything ok.. now my problem is that i changed my site for SEO. the link looks now like this

/en/article/category/i开发者_如何学编程tem/021205-seo-link-is-here

my problem are the pages in google and co..

is there a way to create rule that i can redirect:

/en/article/category/item/021205 >> to >> /en/article/category/item/021205-seo-link-is-here

my site is multilangual /en /es /fr if it is important for the rule

best regards bernte


If your want to do the redirect for each page on your own, then the order of your RewriteRules is important.

Better solution would be to ignore the seo-link in your index.php unless the articleId is unique

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜