I'm trying to redirect the URL of a wordpress blog to a new URL (which isn't wordpress anymore), but want to retain the blog links since it's indexed in Google pretty well.
I'm using the following:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^blog.exampledomain.com !^/? [NC]
RewriteRule ^blog.domain.com https://exampledomain.com/blog [R=301,NC,L]
What I want is to redirect the EXACT domain "blog.exampledomain.com" (and only this request) to the new domain, but if someone accesses "blog.exampledomain.com/post-name", he should get there.
Where do I go wrong with my train of thought?