I'm quite new with htaccess, so I'd require some light here.
I set a new site with Wordpress and want to redirect my old Tumblr posts to the ones I imported to Wordpress.
Domain structure is as follows:
Old Tumblr: tumblr.domain.com
New Wordpress: www.domain.com
And the post structure is:
Old Tumblr: tumblr.domain.com/post/numberID/post-title
New Wordpress: www.domain.com/post-title
I made my research and I don't know why, by some reason I'm just having 404.
What I thought was my best bet was this:
RewriteCond %{HTTP_HOST} ^tumblr.domain.com/post/(.*?)/(.*?)$
RewriteRule http://www.domain.com/$2 [R=301,L]
But doesn't work, I only have a 404.
Note: I also see my home (www.domain.com) when entering tumblr.domain.com
Any help would be very apreciated. Thanks in advance.