开发者

How can I 301 redirect domain.com/tag/* to domain.com/blog/tag/*

I am trying to redirect links to domain.com/tag/* to domain.com/bl开发者_开发知识库og/tag/* (where * is the actual tag name - eg music so domain.com/tag/music would redirect to domain.com/blog/tag/music)

I have been trying but I just can't wrap my head around it.


RewriteRule ^tag/(.*) /blog/tag/$1 [L,R=301]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜