Craig Dennis
Craig Dennis

Reputation: 11

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/blog/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.

Upvotes: 0

Views: 468

Answers (1)

fuxia
fuxia

Reputation: 63556

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

Upvotes: 2

Related Questions